[hackers] [sbase] Fix broken sbase-box due to multiple definitions of usage || sin

From: <git_AT_suckless.org>
Date: Sat, 28 Feb 2015 19:34:49 +0100 (CET)

commit 66b047471bcca8cc85ec99b777d0ec01a1cd9f2f
Author: sin <sin_AT_2f30.org>
Date: Sat Feb 28 18:33:33 2015 +0000

    Fix broken sbase-box due to multiple definitions of usage

diff --git a/basename.c b/basename.c
index 181fc8e..3e74590 100644
--- a/basename.c
+++ b/basename.c
_AT_@ -5,7 +5,7 @@
 
 #include "util.h"
 
-void
+static void
 usage(void)
 {
         eprintf("usage: %s path [suffix]\n", argv0);
diff --git a/sed.c b/sed.c
index f848025..bad7492 100644
--- a/sed.c
+++ b/sed.c
_AT_@ -125,7 +125,7 @@ void stracpy(String *dst, char *src);
 void strnacpy(String *dst, char *src, size_t n);
 
 /* Cleanup and errors */
-void usage(void);
+static void usage(void);
 
 /* Parsing functions and related utilities */
 void compile(char *s, int isfile);
_AT_@ -365,7 +365,7 @@ leprintf(char *s)
 }
 
 /* FIXME: write usage message */
-void
+static void
 usage(void)
 {
         eprintf("USAGE\n");
Received on Sat Feb 28 2015 - 19:34:49 CET

This archive was generated by hypermail 2.3.0 : Sat Feb 28 2015 - 19:36:12 CET