summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2004-02-02 20:09:09 +0000
committerDavid Schleef <ds@schleef.org>2004-02-02 20:09:09 +0000
commite4be2582bc17e5c7925b61c09d61c0cd90e00b08 (patch)
treea8a0e76dad9c50d0e33948b9240d41aae1d866f6 /tests
parent55a16802c89a00836ecb7015402d002d1646c1f9 (diff)
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 ;;
Diffstat (limited to 'tests')
-rwxr-xr-xtests/old/testsuite/gst-lint24
1 files changed, 24 insertions, 0 deletions
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 (<FIND>) {
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";
+ }
+}
+