aboutsummaryrefslogtreecommitdiffstats
path: root/test/setpid.c
diff options
context:
space:
mode:
authorMark Purcell <msp@debian.org>2008-06-22 11:00:40 +1000
committeretobi <git@e-tobi.net>2013-09-03 09:48:42 +0200
commit891c51ff368ed700dec6025eeb47ce4d96f76418 (patch)
tree3729664829e4faa691d403274f38eb10890b533c /test/setpid.c
parent1c6e1f28f54ec2606c23936c1d8689f2be55a86c (diff)
parentab959d7b4194715870128e616b8e29d4a101e488 (diff)
downloadlinux-dvb-apps-a966623153d5c69ef156542.tar.gz
Imported Debian patch 1.1.1+rev1207-1debian/1.1.1+rev1207-1
Diffstat (limited to '')
-rw-r--r--test/setpid.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/test/setpid.c b/test/setpid.c
index fa0333c..a2d42cf 100644
--- a/test/setpid.c
+++ b/test/setpid.c
@@ -1,9 +1,10 @@
-/*
- * Set video and audio PIDs in the demux; useful only if you have
- * a hardware MPEG decoder and you're tuned to a transport stream.
- *
- * usage: DEMUX=/dev/dvb/adapterX/demuxX setpid video_pid audio_pid
- */
+#define USAGE \
+"\n" \
+"\nSet video and audio PIDs in the demux; useful only if you have" \
+"\na hardware MPEG decoder and you're tuned to a transport stream." \
+"\n" \
+"\nusage: DEMUX=/dev/dvb/adapterX/demuxX setpid video_pid audio_pid" \
+"\n"
#include <unistd.h>
#include <stdlib.h>
@@ -69,7 +70,7 @@ int main (int argc, char **argv)
int video_pid, audio_pid;
if (argc != 3) {
- printf ("\nusage: %s <video pid> <audio pid>\n\n", argv[0]);
+ printf ("\nusage: %s <video pid> <audio pid>\n\n" USAGE, argv[0]);
exit (1);
}
if (getenv("DEMUX"))
@@ -83,5 +84,3 @@ int main (int argc, char **argv)
return 0;
}
-
-