changeset 14642:38572280e8e7

bzero is deprecated patch by Gianluigi Tiesi <mplayer at netfarm.it>
author faust3
date Fri, 04 Feb 2005 18:31:04 +0000
parents 3942af0dcca6
children d59cc68ba13b
files libao2/ao_macosx.c libmpcodecs/native/RTjpegN.c libmpcodecs/vd_theora.c libmpdemux/network.c subreader.c
diffstat 5 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_macosx.c	Fri Feb 04 08:51:38 2005 +0000
+++ b/libao2/ao_macosx.c	Fri Feb 04 18:31:04 2005 +0000
@@ -460,7 +460,7 @@
   
   /* zero output buffer */
   for (i = 0; i < NUM_BUFS; i++)
-    bzero(ao->buffer[i], ao->buffer_len);
+    memset(ao->buffer[i], 0, ao->buffer_len);
 
   pthread_mutex_unlock(&ao->buffer_mutex);
        
--- a/libmpcodecs/native/RTjpegN.c	Fri Feb 04 08:51:38 2005 +0000
+++ b/libmpcodecs/native/RTjpegN.c	Fri Feb 04 18:31:04 2005 +0000
@@ -3138,7 +3138,7 @@
   fprintf(stderr, "RTjpeg: Could not allocate memory\n");
   exit(-1);
  }
- bzero(RTjpeg_old, ((4*RTjpeg_width*RTjpeg_height)));
+ memset(RTjpeg_old, 0, ((4*RTjpeg_width*RTjpeg_height)));
 }
 
 #ifdef MMX
--- a/libmpcodecs/vd_theora.c	Fri Feb 04 08:51:38 2005 +0000
+++ b/libmpcodecs/vd_theora.c	Fri Feb 04 18:31:04 2005 +0000
@@ -139,7 +139,7 @@
    mp_image_t* mpi;
    int i;
 
-   bzero (&op, sizeof (op));
+   memset (&op, 0, sizeof (op));
    op.bytes = len;
    op.packet = data;
    op.granulepos = -1;
--- a/libmpdemux/network.c	Fri Feb 04 08:51:38 2005 +0000
+++ b/libmpdemux/network.c	Fri Feb 04 18:31:04 2005 +0000
@@ -228,7 +228,7 @@
 	}
 	
 	
-	bzero(&server_address, sizeof(server_address));
+	memset(&server_address, 0, sizeof(server_address));
 	
 #ifndef HAVE_WINSOCK2
 #ifdef USE_ATON
--- a/subreader.c	Fri Feb 04 08:51:38 2005 +0000
+++ b/subreader.c	Fri Feb 04 18:31:04 2005 +0000
@@ -819,10 +819,10 @@
     static unsigned jacoTimeres = 30;
     static int jacoShift = 0;
 
-    bzero(current, sizeof(subtitle));
-    bzero(line1, LINE_LEN);
-    bzero(line2, LINE_LEN);
-    bzero(directive, LINE_LEN);
+    memset(current, 0, sizeof(subtitle));
+    memset(line1, 0, LINE_LEN);
+    memset(line2, 0, LINE_LEN);
+    memset(directive, 0, LINE_LEN);
     while (!current->text[0]) {
 	if (!fgets(line1, LINE_LEN, fd)) {
 	    return NULL;