X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/b90b52aed59ca92b957c0c27b16f223f11671ec3..fc03eb2dd7092582030b2694d69174ce2bfb82dd:/lib/irc_string.c diff --git a/lib/irc_string.c b/lib/irc_string.c index 0359b51b..1f0b5884 100644 --- a/lib/irc_string.c +++ b/lib/irc_string.c @@ -122,7 +122,7 @@ int match2patterns(const char *patrn, const char *string) { /* COPYRIGHT (C) 1986 Gary S. Brown. You may use this program, or */ /* code or tables extracted from it, as desired without restriction. */ /* Modified by Fox: no more length parameter, always does the whole string */ -unsigned long crc32(const char *s) { +unsigned long irc_crc32(const char *s) { const char *cp; unsigned long crc32val; @@ -134,7 +134,7 @@ unsigned long crc32(const char *s) { } /* Case insensitive version of the above */ -unsigned long crc32i(const char *s) { +unsigned long irc_crc32i(const char *s) { const char *cp; unsigned long crc32val; @@ -261,7 +261,7 @@ const char *longtoduration(unsigned long interval, int format) { pos += sprintf(outstring+pos,"%d minute%s ",minutes,minutes==1?"":"s"); } if (seconds>0 || !interval) { - pos += sprintf(outstring+pos,"%d second%s ",seconds,seconds==1?"":"s"); + sprintf(outstring+pos,"%d second%s ",seconds,seconds==1?"":"s"); } } } else { @@ -275,7 +275,7 @@ const char *longtoduration(unsigned long interval, int format) { pos += sprintf(outstring+pos, "%dm ",minutes); } if (seconds>0 || !interval) { - pos += sprintf(outstring+pos, "%ds ",seconds); + sprintf(outstring+pos, "%ds ",seconds); } }