[ovs-dev] [PATCH] util: Fix non-ANSI function declaration.
Ethan Jackson
ethan at nicira.com
Thu Aug 4 13:21:56 PDT 2011
This patch fixes the following sparse warning:
"non-ANSI function declaration of function 'get_program_version'"
---
lib/util.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/util.c b/lib/util.c
index 0b82318..d430a50 100644
--- a/lib/util.c
+++ b/lib/util.c
@@ -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;
}
--
1.7.6
More information about the dev
mailing list