summaryrefslogtreecommitdiff
path: root/audio/waveplay/files/patch-waveplay.c
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-07-26 16:51:15 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-07-26 16:51:15 +0000
commit9fa9eb9ac7bf1d3de825ee25a8f0ae81b7b77896 (patch)
tree9b071a8105704e992946dcd6b801e9fcb7635142 /audio/waveplay/files/patch-waveplay.c
parentMooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out, (diff)
Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them. With hat: portmgr Sponsored by: Absolight
Diffstat (limited to 'audio/waveplay/files/patch-waveplay.c')
-rw-r--r--audio/waveplay/files/patch-waveplay.c39
1 files changed, 15 insertions, 24 deletions
diff --git a/audio/waveplay/files/patch-waveplay.c b/audio/waveplay/files/patch-waveplay.c
index ad6188db85f6..d0e16ca6f5e3 100644
--- a/audio/waveplay/files/patch-waveplay.c
+++ b/audio/waveplay/files/patch-waveplay.c
@@ -1,24 +1,15 @@
-*** waveplay.c~ Mon Sep 24 16:38:40 2001
---- waveplay.c Thu Jun 8 00:22:50 2006
-***************
-*** 286,293 ****
- int status;
- int arg;
-
-! if ((fd = open(devname, O_WRONLY)) == -1)
- return fd;
-
- /* チャンネル(STEREO or MONAURAL)を設定 */
- arg = (int)(pwf->nChannels);
---- 286,296 ----
- int status;
- int arg;
-
-! if ((fd = open(devname, O_WRONLY)) == -1) {
-! fprintf(stderr, "%s - ", devname);
-! perror("openDSP");
- return fd;
-+ }
-
- /* チャンネル(STEREO or MONAURAL)を設定 */
- arg = (int)(pwf->nChannels);
+--- waveplay.c.orig 2001-09-24 07:38:40 UTC
++++ waveplay.c
+@@ -286,8 +286,11 @@ int openDSP(const char* devname, PWAVEFO
+ int status;
+ int arg;
+
+- if ((fd = open(devname, O_WRONLY)) == -1)
++ if ((fd = open(devname, O_WRONLY)) == -1) {
++ fprintf(stderr, "%s - ", devname);
++ perror("openDSP");
+ return fd;
++ }
+
+ /* チャンネル(STEREO or MONAURAL)を設定 */
+ arg = (int)(pwf->nChannels);