[Liboss-commit] CVS: liboss/lib libosscat.c,1.1,1.2
Brought to you by:
thesin
|
From: Dave V. <va...@us...> - 2002-05-10 10:13:00
|
Update of /cvsroot/liboss/liboss/lib
In directory usw-pr-cvs1:/tmp/cvs-serv2817
Modified Files:
libosscat.c
Log Message:
Stupid errors fixed.
Index: libosscat.c
===================================================================
RCS file: /cvsroot/liboss/liboss/lib/libosscat.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- libosscat.c 10 May 2002 10:10:56 -0000 1.1
+++ libosscat.c 10 May 2002 10:12:57 -0000 1.2
@@ -11,18 +11,18 @@
int fd, play;
char buf[BUF_SIZE];
- if (argc != 1) {
+ if (argc != 2) {
fprintf(stderr, "Usage: libosscat file\n");
exit(1);
}
if ((fd = open(argv[1], O_RDONLY, 0)) < 0) {
- fprintf(stderr, "File %s could not be opened.", argv[1]);
+ fprintf(stderr, "File %s could not be opened.\n", argv[1]);
exit(1);
}
if ((play = open(DEVICE, O_WRONLY, 0)) < 0) {
- fprintf(stderr, "%s could not be opened.", DEVICE);
+ fprintf(stderr, "%s could not be opened.\n", DEVICE);
exit(1);
}
|