Skip to content

Commit

Permalink
Unnecessary and causes warnings.
Browse files Browse the repository at this point in the history
Sorry Mark!
  • Loading branch information
octalmage committed Jul 25, 2015
1 parent 8730e94 commit 25c3b84
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/snprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,6 @@ int portable_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap);

/* declarations */

static char credits[] = "\n\
@(#)snprintf.c, v2.2: Mark Martinec, <mark.martinec@ijs.si>\n\
@(#)snprintf.c, v2.2: Copyright 1999, Mark Martinec. Frontier Artistic License applies.\n\
@(#)snprintf.c, v2.2: http://www.ijs.si/software/snprintf/\n";

#if defined(NEED_ASPRINTF)
int asprintf(char **ptr, const char *fmt, /*args*/ ...) {
va_list ap;
Expand Down Expand Up @@ -593,8 +588,6 @@ int portable_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap) {
char fmt_spec = '\0';
/* current conversion specifier character */

str_arg = credits;/* just to make compiler happy (defined but not used)*/
str_arg = NULL;
starting_p = p; p++; /* skip '%' */
/* parse flags */
while (*p == '0' || *p == '-' || *p == '+' ||
Expand Down

0 comments on commit 25c3b84

Please sign in to comment.