aboutsummaryrefslogtreecommitdiffstats
path: root/coopgammad.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2024-10-14 15:51:39 +0200
committerMattias Andrée <m@maandree.se>2024-10-14 15:51:39 +0200
commitc3d5fdc6fba10b7ab71bb5437f8fdad4b2038b3d (patch)
treead62569e3baac1a2b051cf8f6cab00233a17621c /coopgammad.c
parentUpdate e-mail (diff)
downloadcoopgammad-master.tar.gz
coopgammad-master.tar.bz2
coopgammad-master.tar.xz
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--coopgammad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coopgammad.c b/coopgammad.c
index ecf4619..8638679 100644
--- a/coopgammad.c
+++ b/coopgammad.c
@@ -166,7 +166,7 @@ GCC_ONLY(__attribute__((__nonnull__)))
static int
get_method(const char *restrict arg)
{
-#if LIBGAMMA_METHOD_MAX > 5
+#if LIBGAMMA_METHOD_COUNT > 6
# warning libgamma has added more adjustment methods
#endif
@@ -278,7 +278,7 @@ daemonise(int keep_stderr)
fd = open(pidpath, O_WRONLY);
if (fd < 0)
goto fail;
- if (dprintf(fd, "%llu\n", (unsigned long long)getpid()) < 0)
+ if (dprintf(fd, "%llu\n", (unsigned long long int)getpid()) < 0)
goto fail;
close(fd);
fd = -1;