diff options
author | Pavan Sondur <pavan@gluster.com> | 2009-09-30 05:47:49 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-01 03:32:23 -0700 |
commit | 820b88c3389b59dce190e6846703c267d7113a63 (patch) | |
tree | fcc7ae95c2bf99027a3cd57a517a86fe523ec4df /argp-standalone | |
parent | 572fb95127a37c3bf45a60083ad247064d634085 (diff) |
Make changes such that glusterfs builds with Werror and fix LONG_LONG_MAX definition.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 289 (glusterfs does not build with Werror)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=289
Diffstat (limited to 'argp-standalone')
-rw-r--r-- | argp-standalone/strcasecmp.c | 1 | ||||
-rw-r--r-- | argp-standalone/vsnprintf.c | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/argp-standalone/strcasecmp.c b/argp-standalone/strcasecmp.c index bcad7a226..9c1637232 100644 --- a/argp-standalone/strcasecmp.c +++ b/argp-standalone/strcasecmp.c @@ -8,6 +8,7 @@ */ #include <ctype.h> +int strcasecmp(const char *, const char *); int strcasecmp(const char *s1, const char *s2) { diff --git a/argp-standalone/vsnprintf.c b/argp-standalone/vsnprintf.c index e9b5f192b..33c9a5d00 100644 --- a/argp-standalone/vsnprintf.c +++ b/argp-standalone/vsnprintf.c @@ -551,7 +551,7 @@ static LDOUBLE abs_val (LDOUBLE value) return result; } -static LDOUBLE pow10 (int exp) +static LDOUBLE pow10_argp (int exp) { LDOUBLE result = 1; @@ -564,7 +564,7 @@ static LDOUBLE pow10 (int exp) return result; } -static long round (LDOUBLE value) +static long round_argp (LDOUBLE value) { long intpart; @@ -626,12 +626,12 @@ static int fmtfp (char *buffer, size_t *currlen, size_t maxlen, /* We "cheat" by converting the fractional part to integer by * multiplying by a factor of 10 */ - fracpart = round ((pow10 (max)) * (ufvalue - intpart)); + fracpart = round_argp ((pow10_argp (max)) * (ufvalue - intpart)); - if (fracpart >= pow10 (max)) + if (fracpart >= pow10_argp (max)) { intpart++; - fracpart -= pow10 (max); + fracpart -= pow10_argp (max); } #ifdef DEBUG_SNPRINTF |