From 0d0ff109d3144dfabbf0ff68f9b427815b67da5f Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 2 Feb 2004 20:09:09 +0000 Subject: [PATCH] code cleanup. Change bzero() to memset(). Remove duplicate ; at ends of lines. Original commit message from CVS: code cleanup. Change bzero() to memset(). Remove duplicate ; at ends of lines. * ext/cdparanoia/gstcdparanoia.c: (cdparanoia_event): * ext/flac/gstflactag.c: (gst_flac_tag_chain): * ext/xvid/gstxviddec.c: (gst_xviddec_src_link): * gst-libs/gst/play/play.c: (gst_play_get_sink_element): * gst/ac3parse/gstac3parse.c: (gst_ac3parse_chain): * gst/effectv/gstedge.c: (gst_edgetv_sinkconnect): * gst/effectv/gstvertigo.c: (gst_vertigotv_sinkconnect): * gst/intfloat/float22int.c: (gst_float2_2_int_getcaps), (gst_float2_2_int_link): * gst/mpeg2sub/gstmpeg2subt.c: (gst_mpeg2subt_chain_subtitle): * gst/rtjpeg/RTjpeg.c: (RTjpeg_init_mcompress): * gst/tcp/gsttcpsink.c: (gst_tcpsink_init_send): * gst/tcp/gsttcpsrc.c: (gst_tcpsrc_init_receive): * gst/udp/gstudpsink.c: (gst_udpsink_init_send): * gst/udp/gstudpsrc.c: (gst_udpsrc_init_receive): * sys/v4l/gstv4lelement.c: (gst_v4lelement_init): * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_set_capture): * testsuite/gst-lint: Add tests for bzero and ;; --- ChangeLog | 23 +++++++++++++++++++++++ ext/flac/gstflactag.c | 4 ++-- gst/effectv/gstedge.c | 2 +- gst/effectv/gstvertigo.c | 2 +- gst/udp/gstudpsink.c | 2 +- gst/udp/gstudpsrc.c | 2 +- sys/v4l2/v4l2src_calls.c | 2 +- 7 files changed, 30 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 36757da..866a85f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,28 @@ 2004-02-02 David Schleef + code cleanup. Change bzero() to memset(). Remove duplicate ; at ends + of lines. + * ext/cdparanoia/gstcdparanoia.c: (cdparanoia_event): + * ext/flac/gstflactag.c: (gst_flac_tag_chain): + * ext/xvid/gstxviddec.c: (gst_xviddec_src_link): + * gst-libs/gst/play/play.c: (gst_play_get_sink_element): + * gst/ac3parse/gstac3parse.c: (gst_ac3parse_chain): + * gst/effectv/gstedge.c: (gst_edgetv_sinkconnect): + * gst/effectv/gstvertigo.c: (gst_vertigotv_sinkconnect): + * gst/intfloat/float22int.c: (gst_float2_2_int_getcaps), + (gst_float2_2_int_link): + * gst/mpeg2sub/gstmpeg2subt.c: (gst_mpeg2subt_chain_subtitle): + * gst/rtjpeg/RTjpeg.c: (RTjpeg_init_mcompress): + * gst/tcp/gsttcpsink.c: (gst_tcpsink_init_send): + * gst/tcp/gsttcpsrc.c: (gst_tcpsrc_init_receive): + * gst/udp/gstudpsink.c: (gst_udpsink_init_send): + * gst/udp/gstudpsrc.c: (gst_udpsrc_init_receive): + * sys/v4l/gstv4lelement.c: (gst_v4lelement_init): + * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_set_capture): + * testsuite/gst-lint: Add tests for bzero and ;; + +2004-02-02 David Schleef + * gst/debug/efence.c: Add fallback if MAP_ANONYMOUS isn't defined. 2004-02-02 Thomas Vander Stichele diff --git a/ext/flac/gstflactag.c b/ext/flac/gstflactag.c index a72313b..f2d178d 100644 --- a/ext/flac/gstflactag.c +++ b/ext/flac/gstflactag.c @@ -467,13 +467,13 @@ gst_flac_tag_chain (GstPad *pad, GstData *data) GST_ELEMENT_ERROR (tag, CORE, TOO_LAZY, (NULL), ("Error creating 12-byte buffer for padding block")); } - bzero (GST_BUFFER_DATA (buffer), GST_BUFFER_SIZE (buffer)); + memset (GST_BUFFER_DATA (buffer), 0, GST_BUFFER_SIZE (buffer)); GST_BUFFER_DATA (buffer)[0] = 0x81; /* 0x80 = Last metadata block, * 0x01 = padding block */ } else { guchar header[4]; - bzero (header, sizeof (header)); + memset (header, 0, sizeof (header)); header[0] = 0x84; /* 0x80 = Last metadata block, * 0x04 = vorbiscomment block */ diff --git a/gst/effectv/gstedge.c b/gst/effectv/gstedge.c index 200de67..137eb35 100644 --- a/gst/effectv/gstedge.c +++ b/gst/effectv/gstedge.c @@ -163,7 +163,7 @@ gst_edgetv_sinkconnect (GstPad * pad, const GstCaps * caps) g_free (filter->map); filter->map = (guint32 *)g_malloc (filter->map_width * filter->map_height * sizeof(guint32) * 2); - bzero(filter->map, filter->map_width * filter->map_height * sizeof(guint32) * 2); + memset(filter->map, 0, filter->map_width * filter->map_height * sizeof(guint32) * 2); return gst_pad_try_set_caps (filter->srcpad, caps); } diff --git a/gst/effectv/gstvertigo.c b/gst/effectv/gstvertigo.c index 2d28664..5dc9704 100644 --- a/gst/effectv/gstvertigo.c +++ b/gst/effectv/gstvertigo.c @@ -206,7 +206,7 @@ gst_vertigotv_sinkconnect (GstPad * pad, const GstCaps * caps) g_free (filter->buffer); filter->buffer = (guint32 *) g_malloc (area * 2 * sizeof(guint32)); - bzero (filter->buffer, area * 2 * sizeof(guint32)); + memset (filter->buffer, 0, area * 2 * sizeof(guint32)); filter->current_buffer = filter->buffer; filter->alt_buffer = filter->buffer + area; filter->phase = 0; diff --git a/gst/udp/gstudpsink.c b/gst/udp/gstudpsink.c index c9a7cdc..86238af 100644 --- a/gst/udp/gstudpsink.c +++ b/gst/udp/gstudpsink.c @@ -376,7 +376,7 @@ gst_udpsink_init_send (GstUDPSink *sink) struct in_addr addr; guint bc_val; - bzero (&sink->theiraddr, sizeof (sink->theiraddr)); + memset (&sink->theiraddr, 0, sizeof (sink->theiraddr)); sink->theiraddr.sin_family = AF_INET; /* host byte order */ sink->theiraddr.sin_port = htons (sink->port); /* short, network byte order */ diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index 07d447c..6aced28 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -353,7 +353,7 @@ gst_udpsrc_init_receive (GstUDPSrc *src) { guint bc_val; gint reuse=1; - bzero (&src->myaddr, sizeof (src->myaddr)); + memset (&src->myaddr, 0, sizeof (src->myaddr)); src->myaddr.sin_family = AF_INET; /* host byte order */ src->myaddr.sin_port = htons (src->port); /* short, network byte order */ src->myaddr.sin_addr.s_addr = INADDR_ANY; diff --git a/sys/v4l2/v4l2src_calls.c b/sys/v4l2/v4l2src_calls.c index 2c644fb..8b3276a 100644 --- a/sys/v4l2/v4l2src_calls.c +++ b/sys/v4l2/v4l2src_calls.c @@ -213,7 +213,7 @@ gst_v4l2src_set_capture (GstV4l2Src *v4l2src, } /* update internal info */ - return gst_v4l2src_get_capture(v4l2src);; + return gst_v4l2src_get_capture(v4l2src); } -- 2.7.4