aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-07-15 21:59:43 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2016-07-15 21:59:43 +1200
commite605143046b1295bdb953bf8456b1dca67696d86 (patch)
treee8d4b42009500953b23de8cab3765d512824f58e
parent18ae9e9419002662ca1e6d4537633b610bed16c2 (diff)
downloadbrightnessd-e605143046b1295bdb953bf8456b1dca67696d86.tar.xz
Fix missing parameter on get_now
-rw-r--r--brightnessd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/brightnessd.c b/brightnessd.c
index da16644..8434cfe 100644
--- a/brightnessd.c
+++ b/brightnessd.c
@@ -13,7 +13,7 @@
#define STEP 1
#define BIG_STEP 10
-int get_now()
+int get_now(FILE *f)
{
char buffer[4096]; // FIXME: magic constant is icky
// FIXME: check return value for eror
@@ -48,7 +48,7 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
}
- now = get_now();
+ now = get_now(f);
target = now;
// Open a FIFO