equal
deleted
inserted
replaced
37 |
37 |
38 if (argc != 2) { |
38 if (argc != 2) { |
39 printf ("Usage: %s <DEVICE>\n", argv[0]); |
39 printf ("Usage: %s <DEVICE>\n", argv[0]); |
40 printf ("Example: %s /dev/dsp\n", argv[0]); |
40 printf ("Example: %s /dev/dsp\n", argv[0]); |
41 printf ("Example: %s /dev/dsp1\n", argv[0]); |
41 printf ("Example: %s /dev/dsp1\n", argv[0]); |
42 return EXIT_SUCCESS; |
42 return EXIT_FAILURE; |
43 } |
43 } |
44 |
44 |
45 fd = open (argv[1], O_RDWR); |
45 fd = open (argv[1], O_RDWR); |
46 if (fd < 0) { |
46 if (fd < 0) { |
47 perror ("open of sound device failed"); |
47 perror ("open of sound device failed"); |