summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-11-10 11:15:27 +0000
committerRoy Marples <roy@marples.name>2008-11-10 11:15:27 +0000
commit3ad4d331afc3c7959cf9ca0c694adb190337a634 (patch)
treede5d9d27c39f8024c5d8a9b0e340c8976420cca2 /common.h
parenteee1b3eed91b9122ad132ea501430693641cd066 (diff)
downloaddhcpcd-3ad4d331afc3c7959cf9ca0c694adb190337a634.tar.xz
Fix some LINT errors.
Diffstat (limited to 'common.h')
-rw-r--r--common.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/common.h b/common.h
index c5879452..1f78b35f 100644
--- a/common.h
+++ b/common.h
@@ -56,6 +56,11 @@
# define _unused
#endif
+/* We require a c99 compiler, but we need this define to satisfy lint */
+#ifndef __restrict
+# define __restrict restrict
+#endif
+
#ifndef HAVE_ARC4RANDOM
# ifdef __GLIBC__
uint32_t arc4random(void);
@@ -86,7 +91,7 @@ int closefrom(int);
int set_cloexec(int);
int set_nonblock(int);
-char *get_line(FILE * restrict);
+char *get_line(FILE * __restrict);
extern int clock_monotonic;
int get_monotonic(struct timeval *);
time_t uptime(void);