From e4be2582bc17e5c7925b61c09d61c0cd90e00b08 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 2 Feb 2004 20:09:09 +0000 Subject: 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 ;; --- tests/old/testsuite/gst-lint | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tests') diff --git a/tests/old/testsuite/gst-lint b/tests/old/testsuite/gst-lint index 95c9e1adb..ce0875124 100755 --- a/tests/old/testsuite/gst-lint +++ b/tests/old/testsuite/gst-lint @@ -42,6 +42,8 @@ sub check_old_plugin(); sub check_signal_new(); sub check_gnuc_const(); sub check_caps(); +sub check_lib_deprecated(); +sub check_typo(); sub m_check_plugindir(); sub m_check_interfaces(); @@ -65,6 +67,8 @@ foreach $filename () { check_old_typefind(); check_old_plugin(); check_caps(); + check_lib_deprecated(); + check_typo(); # less important stuff @@ -458,3 +462,23 @@ sub check_caps() } } +# +# Check for use of deprecated functions +# +sub check_lib_deprecated() +{ + if (grep { /bzero/ } @lines) { + print "E: change bzero() to memset()\n"; + } +} + +# +# Check for typos +# +sub check_typo() +{ + if (grep { /;\s*;\s*$/ } @lines) { + print "W: typo? \";;\"\n"; + } +} + -- cgit v1.2.3