summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/AFC.c2
-rw-r--r--src/NotificationProxy.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/AFC.c b/src/AFC.c
index 6a6d3f2..6a58686 100644
--- a/src/AFC.c
+++ b/src/AFC.c
@@ -339,7 +339,7 @@ static afc_error_t afc_receive_data(afc_client_t client, char **dump_here, int *
*bytes = 0;
log_debug_msg("%s: WARNING: Unknown operation code received 0x%llx param1=%lld\n", __func__, header.operation, param1);
- fprintf(stderr, "%s: WARNING: Unknown operation code received 0x%llx param1=%lld\n", __func__, header.operation, param1);
+ fprintf(stderr, "%s: WARNING: Unknown operation code received 0x%llx param1=%lld\n", __func__, (long long)header.operation, (long long)param1);
return AFC_E_OP_NOT_SUPPORTED;
}
diff --git a/src/NotificationProxy.c b/src/NotificationProxy.c
index 7e52405..e4735cc 100644
--- a/src/NotificationProxy.c
+++ b/src/NotificationProxy.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <arpa/inet.h>
#include <plist/plist.h>