a3dfc1076f
gcc45. - avoid implicit int, declare void functions void - return values from non-void functions - put most external declarations properly in header files - use some static and const - fix up a big mess with function pointer casting - use standard includes, don't provide own decls of standard functions - use types matching libc when providing own malloc, printf, and putchar - use <ctype.h> functions correctly - silence assorted compiler warnings - fix some bugs exposed by compiler warnings - don't intentionally exercise signed overflow - remove some unused items - add patch comments to other patch (patch-aa) As this includes several fixes and removes some undefined behavior on a commonly reachable code path, bump PKGREVISION.
23 lines
756 B
Text
23 lines
756 B
Text
$NetBSD: patch-libterm_libterm_h,v 1.1 2012/12/28 03:03:09 dholland Exp $
|
|
|
|
- use const for string constants
|
|
- declare type of function pointer properly
|
|
|
|
--- libterm/libterm.h.orig 2002-02-04 01:30:04.000000000 +0000
|
|
+++ libterm/libterm.h
|
|
@@ -56,9 +56,9 @@
|
|
#endif
|
|
#endif
|
|
|
|
-int tgetent __P((char *, char *));
|
|
-int tgetnum __P((char *));
|
|
-int tgetflag __P((char *));
|
|
-char *tgetstr __P((char *, char **));
|
|
-char *tgoto __P((char *, int, int));
|
|
-int tputs __P((register char *, int, int (*)()));
|
|
+int tgetent __P((char *, const char *));
|
|
+int tgetnum __P((const char *));
|
|
+int tgetflag __P((const char *));
|
|
+char *tgetstr __P((const char *, char **));
|
|
+const char *tgoto __P((char *, int, int));
|
|
+void tputs __P((register const char *, int, int (*)(int)));
|