1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/graphics/tgd/files/patch-ad
Michael Haro dde4ffa189 Add support for PREFIX, CFLAGS and less warnings when building with
CFLAGS=-Wall

PR:		10933
Submitted by:	me
1999-04-13 07:06:36 +00:00

50 lines
1.0 KiB
Plaintext

--- tgdcommand.c.orig Sat Apr 3 11:38:42 1999
+++ tgdcommand.c Sat Apr 3 12:12:23 1999
@@ -8,6 +8,12 @@
*/
#include <stdio.h>
+#include <ctype.h>
+#include <string.h>
+#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[];
{