From dde4ffa189a85f0a4da347b91bad4a817a91c7f0 Mon Sep 17 00:00:00 2001 From: Michael Haro Date: Tue, 13 Apr 1999 07:06:36 +0000 Subject: Add support for PREFIX, CFLAGS and less warnings when building with CFLAGS=-Wall PR: 10933 Submitted by: me --- graphics/tgd/files/patch-ad | 49 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 graphics/tgd/files/patch-ad (limited to 'graphics/tgd/files/patch-ad') diff --git a/graphics/tgd/files/patch-ad b/graphics/tgd/files/patch-ad new file mode 100644 index 000000000000..50e008722fd8 --- /dev/null +++ b/graphics/tgd/files/patch-ad @@ -0,0 +1,49 @@ +--- tgdcommand.c.orig Sat Apr 3 11:38:42 1999 ++++ tgdcommand.c Sat Apr 3 12:12:23 1999 +@@ -8,6 +8,12 @@ + */ + + #include ++#include ++#include ++#include "gd.h" ++#include "tgd.h" ++#include "tgdcommand.h" ++#include "tgdgd.h" + + static char SCCS[] = "@(#)tgdcommand.c 1.4 10/5/95 tgd"; + +@@ -170,6 +176,7 @@ + + strcat( buf, " is not a known command" ); + die( buf ); ++ return 0; /* turn off compiler warning */ + } + + /* -- +@@ -184,6 +191,7 @@ + if ( cmd->id == id ) + return cmd; + die( "command not found" ); /* XXX return NULL ? */ ++ return 0; /* turn off compiler warning */ + } + + /* -- +@@ -205,7 +213,7 @@ + CMD *cmd; + + if ( cmd_id == TGDBLANKLINE ) +- return; ++ return 0; /* potential bug: value should be ignored */ + /* one character in argcheck for each argument */ + cmd = cmdbyid( cmd_id ); + for ( s = cmd->argcheck, count = 0; *s; s++, count++ ) { +@@ -250,7 +258,7 @@ + /* -- + * Find the routine to handle the command. + */ +-tgdcommand( argc, argv ) ++void tgdcommand( argc, argv ) + int argc; + char *argv[]; + { -- cgit v1.2.3