From 4e1b157c573c284289e417e1f4f895bce462e155 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 14 Mar 2003 15:43:49 +0000 Subject: [PATCH] Make gcc shutup about unused rcsid --- strlcat.c | 9 +++++---- strlcpy.c | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/strlcat.c b/strlcat.c index 7383fd015..0182a5fff 100644 --- a/strlcat.c +++ b/strlcat.c @@ -27,15 +27,16 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef lint -static char *rcsid = "$Sudo$"; -#endif /* lint */ - #include #include #include "config.h" +#ifndef lint +static const char rcsid[] = "$Sudo$"; +#endif /* lint */ + + /* * Appends src to string dst of size siz (unlike strncat, siz is the * full size of dst, not space left). At most siz-1 characters diff --git a/strlcpy.c b/strlcpy.c index 655241993..6515cc104 100644 --- a/strlcpy.c +++ b/strlcpy.c @@ -27,14 +27,14 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef lint -static char *rcsid = "$Sudo$"; -#endif /* lint */ - #include #include "config.h" +#ifndef lint +static const char rcsid[] = "$Sudo$"; +#endif /* lint */ + /* * Copy src to string dst of size siz. At most siz-1 characters * will be copied. Always NUL terminates (unless siz == 0). -- 2.40.0