summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-10-12 17:49:34 +0200
committerAaron Crane <arc@cpan.org>2017-10-21 16:52:00 +0100
commit3313a8602661409b390874b9b1bcd7de4c8455de (patch)
treeb3ea04801bc0ae43332a84704e958a94acbeb297 /util.c
parent67aaef986388cb6322d74bf057ce4b2bf7ee15c0 (diff)
downloadperl-3313a8602661409b390874b9b1bcd7de4c8455de.tar.gz
Rely on C89 sprintf() return type
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/util.c b/util.c
index c9a46aef2c..4bc4ba23f3 100644
--- a/util.c
+++ b/util.c
@@ -2237,11 +2237,7 @@ Perl_unlnk(pTHX_ const char *f) /* unlink all versions of a file */
but probably won't on others.
*/
-#ifdef USE_CHAR_VSPRINTF
-char *
-#else
int
-#endif
vsprintf(char *dest, const char *pat, void *args)
{
FILE fakebuf;
@@ -2269,11 +2265,7 @@ vsprintf(char *dest, const char *pat, void *args)
# endif
(void)fputc('\0', &fakebuf);
#endif
-#ifdef USE_CHAR_VSPRINTF
- return(dest);
-#else
return 0; /* perl doesn't use return value */
-#endif
}
#endif /* HAS_VPRINTF */