1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/security/tripwire12/files/patch-warnings
Steve Price 0a9a4b5bd2 - Fix some of the compiler warnings (see patches/patch-warnings)
- Fix the Makefiles to obey the CC and CFLAGS settings
- Fix patches/patch-ab to be PREFIX/LOCALBASE safe
- Fix the post-install to not compress the gunzip and tripwire executables
  that go onto a floppy -- there is no support for the gzip-ed ELF binaries
  at all, and even for the older AOUT ones such support was optional
- Replaces the /kernel with `sysctl -n kern.bootfile` in the tw.conf as the
  tw.conf.freebsd2 is copied into the right place.
- Replace the use of mktemp(3) with tmpfile(3) (see patches/patch-mktemp).
  This also caused a removal of a few buffers (of size MAXPATHLEN+256) and
  quite a few strcpy and sprintf invocations.

PR:		18634
Submitted by:	Mikhail Teterin <mi@aldan.algebra.com>
2000-05-29 02:27:45 +00:00

34 lines
728 B
Plaintext

This patches remove some of the warnings produced by the compiler.
--- src/siggen.c Mon Jul 25 11:24:12 1994
+++ src/siggen.c Wed May 17 19:15:29 2000
@@ -15,2 +15,3 @@
#include "../include/config.h"
+#include <unistd.h>
#include <stdio.h>
@@ -104,4 +104,6 @@
+
+/* forward declaration, to avoid compiler warnings */
+int siggen(int);
int
main(argc, argv)
--- aux/byteorder.c Fri Jul 15 07:02:36 1994
+++ aux/byteorder.c Wed May 17 19:12:42 2000
@@ -22,3 +22,3 @@
-void
+int
main()
@@ -34,2 +34,3 @@
+#warning "the shift-width warning below can be ignored"
if (sizeof(int32) > 4)
--- aux/types.c Sun Dec 12 23:02:27 1993
+++ aux/types.c Wed May 17 19:23:21 2000
@@ -24,3 +24,3 @@
-void
+int
main(argc, argv)