freebsd-ports/astro/luna/files/patch-iprintf_iprintf.c
Mathieu Arnold 9fa9eb9ac7 Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-26 16:51:15 +00:00

56 lines
1 KiB
C

--- iprintf/iprintf.c.orig 2016-07-26 13:07:24 UTC
+++ iprintf/iprintf.c
@@ -13,7 +13,7 @@
#if defined(ANSI)
# include <stdarg.h>
#elif defined(UNIX)
-# include <varargs.h>
+# include <stdarg.h>
#else
Error : varargs.h or stdarg.h is required to compile this.
#endif /* ANSI or UNIX */
@@ -52,44 +52,21 @@ i_fputn(stream, string, count, total_cou
}
-#if defined(ANSI)
int
iprintf(char *format, ...)
-#elif defined(UNIX)
-int
-iprintf(format, va_alist)
- char *format;
- va_dcl
-#endif /* ANSI or UNIX */
{
va_list args;
-#if defined(ANSI)
va_start (args, format);
-#elif defined(UNIX)
- va_start(args);
-#endif /* ANSI or UNIX */
return (ivprintf(format, args));
}
-#if defined(ANSI)
int
ifprintf(FILE *stream, char *format, ...)
-#elif defined(UNIX)
-int
-ifprintf(stream, format, va_alist)
- FILE *stream;
- char *format;
- va_dcl
-#endif /* UNIX */
{
va_list args;
-#if defined(ANSI)
va_start (args, format);
-#elif defined(UNIX)
- va_start(args);
-#endif /* ANSI or UNIX */
return (ivfprintf(stream, format, args));
}