[MPlayer-dev-eng] [PATCH] memset/memcpy warnings

Björn Sandell biorn at dce.chalmers.se
Wed May 15 01:19:46 CEST 2002


memset and memcpy are used without #include <string.h> in a few places.
Here's the patch. Checked with manpages on {Free,Net,Open}BSD, AIX,
Solaris and Linux (RH 7.1) (and C89 :).

Björn Sandell       DCE/DFS Sysadmin       IT department
Chalmers University of Technology    www.dce.chalmers.se
-------------- next part --------------
Index: libmpcodecs/native/fli.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/native/fli.c,v
retrieving revision 1.10
diff -u -r1.10 fli.c
--- libmpcodecs/native/fli.c	28 Feb 2002 03:01:53 -0000	1.10
+++ libmpcodecs/native/fli.c	14 May 2002 20:00:44 -0000
@@ -14,6 +14,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include "config.h"
 #include "bswap.h"
 #include "mp_msg.h"
Index: libmpcodecs/native/nuppelvideo.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/native/nuppelvideo.c,v
retrieving revision 1.6
diff -u -r1.6 nuppelvideo.c
--- libmpcodecs/native/nuppelvideo.c	13 Apr 2002 18:05:57 -0000	1.6
+++ libmpcodecs/native/nuppelvideo.c	14 May 2002 20:00:44 -0000
@@ -9,6 +9,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <strings.h>
 
 #include "config.h"
 #include "mp_msg.h"
Index: libmpcodecs/native/roqav.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/native/roqav.c,v
retrieving revision 1.6
diff -u -r1.6 roqav.c
--- libmpcodecs/native/roqav.c	18 Apr 2002 17:08:08 -0000	1.6
+++ libmpcodecs/native/roqav.c	14 May 2002 20:00:44 -0000
@@ -8,6 +8,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include "config.h"
 #include "bswap.h"
 #include "mp_msg.h"


More information about the MPlayer-dev-eng mailing list