Fix GCC -static-libstdc++.
[nethome.git] / src / flock.c
index e256676..1bb08cd 100644 (file)
@@ -18,7 +18,8 @@ int verbose;
 
 char *pname;
 
-static __NORETURN void usage(void)
+static void usage(void) __attribute__((noreturn));
+static void usage(void)
 {
        fprintf(stderr,"\
 %s\
@@ -44,7 +45,8 @@ const struct option longopts[]={
 {"nonblock" ,0,0,'n'},
 {"verbose"  ,0,0,'v'},
 {"help"     ,0,0,'h'},
-{"version"  ,0,0,'V'}};
+{"version"  ,0,0,'V'},
+{NULL       ,0,0,0  }};
 
 int main(int argc,char **argv)
 {