util: Fix non-ANSI function declaration.
authorEthan Jackson <ethan@nicira.com>
Thu, 4 Aug 2011 20:20:30 +0000 (13:20 -0700)
committerEthan Jackson <ethan@nicira.com>
Thu, 4 Aug 2011 20:21:38 +0000 (13:21 -0700)
This patch fixes the following sparse warning:
"non-ANSI function declaration of function 'get_program_version'"

lib/util.c

index 0b82318cab8d225b63fbc24d55d1f2910d020248..d430a500728df385abd7d76c1d2e11f913e4b144 100644 (file)
@@ -303,7 +303,7 @@ set_program_name__(const char *argv0, const char *date, const char *time)
  * caller must not modify or free the returned string.
  */ 
 const char *
-get_program_version()
+get_program_version(void)
 {
     return program_version;
 }