pkgsrc/editors/ex/patches/patch-ex__argv_h
dholland a3dfc1076f Fix legacy C. Pass -Wall -W -Wmissing-declarations -Wwrite-strings on
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.
2012-12-28 03:03:08 +00:00

12 lines
294 B
Text

$NetBSD: patch-ex__argv_h,v 1.1 2012/12/28 03:03:08 dholland Exp $
- declare void functions void
--- ex_argv.h~ 2002-02-02 00:05:46.000000000 +0000
+++ ex_argv.h
@@ -102,4 +102,4 @@ struct glob {
};
var struct glob frob;
-int gglob __P((struct glob *));
+void gglob __P((struct glob *));