From: Michael Urman Date: Tue, 18 Sep 2001 03:23:52 +0000 (-0000) Subject: Fixed two ansi C errors (empty file and extra semicolon) X-Git-Tag: v0.1.0~331 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=caba67b7d693e03587e95959857aeecc3bd9fda4;p=yasm Fixed two ansi C errors (empty file and extra semicolon) svn path=/trunk/yasm/; revision=183 --- diff --git a/libyasm/strcasecmp.c b/libyasm/strcasecmp.c index 56ff90b0..b0aa443c 100644 --- a/libyasm/strcasecmp.c +++ b/libyasm/strcasecmp.c @@ -36,6 +36,8 @@ #include "util.h" +RCSID("$IdPath$"); + #ifdef USE_OUR_OWN_STRCASECMP #if defined(LIBC_SCCS) && !defined(lint) @@ -47,8 +49,6 @@ static char sccsid[] = "@(#)strcasecmp.c 8.1 (Berkeley) 6/4/93"; # include #endif -RCSID("$IdPath$"); - int strcasecmp(const char *s1, const char *s2) { diff --git a/libyasm/util.h b/libyasm/util.h index 3a56a18f..d5984ea0 100644 --- a/libyasm/util.h +++ b/libyasm/util.h @@ -61,7 +61,7 @@ int strncasecmp(const char *s1, const char *s2, size_t n); #ifdef __RCSID # define RCSID(s) __RCSID(s) #else -# define RCSID(s) static const char rcsid[] = s; +# define RCSID(s) static const char rcsid[] = s #endif #endif diff --git a/src/strcasecmp.c b/src/strcasecmp.c index 56ff90b0..b0aa443c 100644 --- a/src/strcasecmp.c +++ b/src/strcasecmp.c @@ -36,6 +36,8 @@ #include "util.h" +RCSID("$IdPath$"); + #ifdef USE_OUR_OWN_STRCASECMP #if defined(LIBC_SCCS) && !defined(lint) @@ -47,8 +49,6 @@ static char sccsid[] = "@(#)strcasecmp.c 8.1 (Berkeley) 6/4/93"; # include #endif -RCSID("$IdPath$"); - int strcasecmp(const char *s1, const char *s2) { diff --git a/src/util.h b/src/util.h index 3a56a18f..d5984ea0 100644 --- a/src/util.h +++ b/src/util.h @@ -61,7 +61,7 @@ int strncasecmp(const char *s1, const char *s2, size_t n); #ifdef __RCSID # define RCSID(s) __RCSID(s) #else -# define RCSID(s) static const char rcsid[] = s; +# define RCSID(s) static const char rcsid[] = s #endif #endif diff --git a/util.h b/util.h index 3a56a18f..d5984ea0 100644 --- a/util.h +++ b/util.h @@ -61,7 +61,7 @@ int strncasecmp(const char *s1, const char *s2, size_t n); #ifdef __RCSID # define RCSID(s) __RCSID(s) #else -# define RCSID(s) static const char rcsid[] = s; +# define RCSID(s) static const char rcsid[] = s #endif #endif