Skip to content

Commit 25c3b84

Browse files
committed
Unnecessary and causes warnings.
Sorry Mark!
1 parent 8730e94 commit 25c3b84

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/snprintf.c

-7
Original file line numberDiff line numberDiff line change
@@ -410,11 +410,6 @@ int portable_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap);
410410

411411
/* declarations */
412412

413-
static char credits[] = "\n\
414-
@(#)snprintf.c, v2.2: Mark Martinec, <mark.martinec@ijs.si>\n\
415-
@(#)snprintf.c, v2.2: Copyright 1999, Mark Martinec. Frontier Artistic License applies.\n\
416-
@(#)snprintf.c, v2.2: http://www.ijs.si/software/snprintf/\n";
417-
418413
#if defined(NEED_ASPRINTF)
419414
int asprintf(char **ptr, const char *fmt, /*args*/ ...) {
420415
va_list ap;
@@ -593,8 +588,6 @@ int portable_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap) {
593588
char fmt_spec = '\0';
594589
/* current conversion specifier character */
595590

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

0 commit comments

Comments
 (0)