openbsd-ports/sysutils/tcplist/patches/patch-utils_h
sthen 5c54bb26a9 - add upstream patches (missing ntohl, adjust lsof parsing)
- add missing prototype
- unbreak lsof command line
- mark BROKEN on lp64

considering between these problems this port was totally useless, so
presumably nobody actually uses this and is a good candidate for removal.
2012-01-17 17:08:16 +00:00

28 lines
891 B
Plaintext

$OpenBSD: patch-utils_h,v 1.3 2012/01/17 17:08:16 sthen Exp $
--- utils.h.orig Tue Jan 17 16:38:38 2012
+++ utils.h Tue Jan 17 16:38:39 2012
@@ -50,19 +50,19 @@
/* Error - print like fprintf(stderr, ...) and die. Progname included at
beginning of message, newline at end. */
-extern void Error();
+extern void Error(const char *, ...);
/* Warning - like error, without dying */
-extern void Warning();
+extern void Warning(const char *, ...);
extern char *mylib_malloc();
extern char *mylib_realloc();
extern char *mylib_scopy();
extern char *mylib_srcopy();
-extern char *cat();
+extern char *cat(char *, ...);
extern char *getstr();
extern FILE *efopen();
extern void efclose();
-extern void dfprintf();
+extern void dfprintf(int, FILE *, const char *, ...);
extern char *progname; /* application's name. Used by Error, Warning. */
extern int d; /* debug level */