db-ctl-base: Add "static" to definition of ctl_exit().
authorBen Pfaff <blp@nicira.com>
Mon, 20 Jul 2015 18:20:05 +0000 (11:20 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 20 Jul 2015 18:25:17 +0000 (11:25 -0700)
The prototype said "static" but the definition did not.

Reported by sparse.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
lib/db-ctl-base.c

index e3c0373..09efd8d 100644 (file)
@@ -1953,7 +1953,7 @@ ctl_fatal(const char *format, ...)
  * Freeing the transaction and the IDL is not strictly necessary, but it makes
  * for a clean memory leak report from valgrind in the normal case.  That makes
  * it easier to notice real memory leaks. */
-void
+static void
 ctl_exit(int status)
 {
     if (ctl_exit_func) {