X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/565cc8df95b2d9171dda472ca59175de1c8ba317..e0443320f54c8a62a9b68da4d72782b1caca44c6:/test-vasprintf.c diff --git a/test-vasprintf.c b/test-vasprintf.c index 1b2544a4..ee6980a2 100644 --- a/test-vasprintf.c +++ b/test-vasprintf.c @@ -1,4 +1,4 @@ -/* $Id: test-vasprintf.c,v 1.2 2015/03/20 15:32:02 schwarze Exp $ */ +/* $Id: test-vasprintf.c,v 1.4 2016/07/18 18:35:05 schwarze Exp $ */ /* * Copyright (c) 2015 Ingo Schwarze * @@ -23,7 +23,10 @@ #include #include -int +static int testfunc(char **, const char *, ...); + + +static int testfunc(char **ret, const char *format, ...) { va_list ap; @@ -33,7 +36,7 @@ testfunc(char **ret, const char *format, ...) irc = vasprintf(ret, format, ap); va_end(ap); - return(irc); + return irc; } int @@ -42,8 +45,8 @@ main(void) char *ret; if (testfunc(&ret, "%s.", "Text") != 5) - return(1); + return 1; if (strcmp(ret, "Text.")) - return(2); - return(0); + return 2; + return 0; }