]> granicus.if.org Git - sudo/commitdiff
Make gcc shutup about unused rcsid
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 14 Mar 2003 15:43:49 +0000 (15:43 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 14 Mar 2003 15:43:49 +0000 (15:43 +0000)
strlcat.c
strlcpy.c

index 7383fd0154b15c45e7e461d9cb45c95e8b91282b..0182a5fff75dd49dd3f9a94ecb81dc0009e5f44d 100644 (file)
--- a/strlcat.c
+++ b/strlcat.c
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef lint
-static char *rcsid = "$Sudo$";
-#endif /* lint */
-
 #include <sys/types.h>
 #include <string.h>
 
 #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
index 65524199350b0f8080ea376ee3b342a11291e0c9..6515cc1049f93e25673116018af77427622d2f75 100644 (file)
--- a/strlcpy.c
+++ b/strlcpy.c
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef lint
-static char *rcsid = "$Sudo$";
-#endif /* lint */
-
 #include <sys/types.h>
 
 #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).