aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drv_PICGraphic.c2
-rw-r--r--timer.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/drv_PICGraphic.c b/drv_PICGraphic.c
index c33973d..8586eb6 100644
--- a/drv_PICGraphic.c
+++ b/drv_PICGraphic.c
@@ -203,7 +203,7 @@ static void drv_PICGraphic_blit(const int row, const int col, const int height,
delayDone = 0;
int row8, height8;
row8 = 8 * (row / 8);
- height8 = 8 * (height / 8) + !!(height % 8);
+ height8 = 8 * (height / 8) + ! !(height % 8);
info("sending blit");
cmd[0] = 'b';
cmd[1] = row8;
diff --git a/timer.c b/timer.c
index cb259ee..5dbb379 100644
--- a/timer.c
+++ b/timer.c
@@ -372,7 +372,7 @@ int timer_process(struct timespec *delay)
}
}
- int next_timer = -1; /* ID of the next upcoming timer */
+ int next_timer = -1; /* ID of the next upcoming timer */
/* loop through the timer slots and try to find the next upcoming
timer */
@@ -455,7 +455,7 @@ void timer_exit(void)
/* reset number of allocated timer slots */
nTimers = 0;
- /* free memory used for storing the timer slots */
+ /* free memory used for storing the timer slots */
if (Timers != NULL) {
free(Timers);
Timers = NULL;