[Pkg-shadow-devel] [PATCH] salt: drop l64a prototype

Mike Frysinger vapier at gentoo.org
Thu Mar 12 22:21:14 UTC 2009

There is a useless l64a prototype in salt.c that breaks compiling:
salt.c:35: error: static declaration of 'l64a' follows non-static declaration
salt.c:24: error: previous declaration of 'l64a' was here

Considering l64a is static and the first func in the file, having a proto
followed immediately by the actual func definition is unnecessary.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
 libmisc/salt.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/libmisc/salt.c b/libmisc/salt.c
index 728147e..d61908f 100644
--- a/libmisc/salt.c
+++ b/libmisc/salt.c
@@ -20,9 +20,6 @@
 #include "getdef.h"
 /* local function prototypes */
-#ifndef HAVE_L64A
-char *l64a(long value);
-#endif /* !HAVE_L64A */
 static void seedRNG (void);
 static char *gensalt (size_t salt_size);

More information about the Pkg-shadow-devel mailing list