Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Feb 1997 15:16:47 +0100 (CET)
From:      Arne Henrik Juul <arnej@imf.unit.no>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/2759: Several files lack include of string.h
Message-ID:  <199702181416.PAA13943@frida.imf.unit.no>
Resent-Message-ID: <199702181420.GAA06071@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2759
>Category:       bin
>Synopsis:       Several files lack include of string.h
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 18 06:20:02 PST 1997
>Last-Modified:
>Originator:     Arne Henrik Juul
>Organization:
Norwegian University of Technology and Science
>Release:        FreeBSD 2.2-GAMMA i386
>Environment:
	Probably applies to both the 2.2-GAMMA and 3.0-current now (Feb 1997).
>Description:
	Several source files lack includes of string.h, thereby
	causing string functions to be implecitly declared as
	returning int.
>How-To-Repeat:
	#define NULL ((void *)0), then look for the warnings.
>Fix:
	Apply this patch:
Index: games/hangman/hangman.h
===================================================================
RCS file: /usr/cvs/src/games/hangman/hangman.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 hangman.h
--- hangman.h	1994/09/04 04:02:57	1.1.1.1
+++ hangman.h	1997/02/15 11:46:05
@@ -33,6 +33,7 @@
  *	@(#)hangman.h	8.1 (Berkeley) 5/31/93
  */
 
+# include	<string.h>
 # include	<curses.h>
 # include	<sys/types.h>
 # include	<sys/stat.h>
Index: libexec/ftpd/skey-stuff.c
===================================================================
RCS file: /usr/cvs/src/libexec/ftpd/skey-stuff.c,v
retrieving revision 1.6
diff -u -r1.6 skey-stuff.c
--- skey-stuff.c	1996/10/18 17:09:26	1.6
+++ skey-stuff.c	1997/02/16 17:07:29
@@ -4,6 +4,7 @@
  */
 
 #include <stdio.h>
+#include <string.h>
 #include <pwd.h>
 
 #include <skey.h>
Index: usr.sbin/bootparamd/bootparamd/bootparamd.c
===================================================================
RCS file: /usr/cvs/src/usr.sbin/bootparamd/bootparamd/bootparamd.c,v
retrieving revision 1.3
diff -u -r1.3 bootparamd.c
--- bootparamd.c	1995/07/25 22:44:13	1.3
+++ bootparamd.c	1997/02/16 17:35:33
@@ -15,6 +15,7 @@
 #include <rpcsvc/ypclnt.h>
 #include "bootparam_prot.h"
 #include <stdio.h>
+#include <string.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702181416.PAA13943>