Removal of includes of strings.h

Joachim Strömbergson <[email protected]> Mon, 18 Nov 2002 20:45:24 +0100
Newsgroups gmane.os.freebsd.devel.audit
Organization Strömbergson Intergalactic AB
Message-ID <[email protected]>
Aloha!

Strings.h in FreeBSD is simply defined as: #include <string.h>

Applications should instead use string.h directly. This was fixed in dd.

I submitted a similar patch för rusers in June. I have been in contact
with Giorgos and he suggested that I should submit similar patches for
other programs to FreeBSD-Audit.

This mail contains the rusers patch (again) and patches for mount_nfs
and ncplogin.

All patches are against STABLE.

Comments? Commits?

-- 
Med vänlig hälsning, Cheers!

Joachim Strömbergson
============================================================================
Joachim Strömbergson - ASIC designer, nice to *cute* animals.
    snail:                  phone:                     mail & web:
Sävenäsgatan 5A        +46 31 - 27 98 47          [email protected]
416 72 Göteborg        +46 733 75 97 02           www.ludd.luth.se/~watchman
============================================================================
mount_nfs.diff (text/plain, 274 B)
--- /usr/src/sbin/mount_nfs/mount_nfs.c	Wed Aug 14 11:57:20 2002
+++ mount_nfs.c	Fri Nov 15 08:25:44 2002
@@ -75,7 +75,7 @@
 #include <netdb.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <strings.h>
+#include <string.h>
 #include <sysexits.h>
 #include <unistd.h>
ncplogin.diff (text/plain, 272 B)
--- /usr/src/usr.bin/ncplogin/ncplogin.c	Sun Oct 31 03:14:59 1999
+++ ncplogin.c	Fri Nov 15 08:21:23 2002
@@ -37,7 +37,7 @@
 #include <err.h>
 #include <stdio.h>
 #include <unistd.h>
-#include <strings.h>
+#include <string.h>
 #include <stdlib.h>
 #include <sysexits.h>
rusers.diff (text/plain, 274 B)
--- /usr/src/usr.bin/rusers/rusers.c	Wed Jul  4 22:20:31 2001
+++ rusers.c	Fri Nov 15 08:23:19 2002
@@ -46,7 +46,7 @@
 #include <netdb.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <strings.h>
+#include <string.h>
 #include <unistd.h>
 
 #define MAX_INT		0x7fffffff