[BACK]Return to audioctl.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / audioctl

Diff for /src/usr.bin/audioctl/audioctl.c between version 1.2 and 1.3

version 1.2, 1998/04/26 22:27:25 version 1.3, 1998/04/30 13:46:18
Line 1 
Line 1 
 /*      $OpenBSD$       */  /*      $OpenBSD$       */
 /*      $NetBSD: audioctl.c,v 1.12 1997/10/19 07:44:12 augustss Exp $   */  /*      $NetBSD: audioctl.c,v 1.14 1998/04/27 16:55:23 augustss Exp $   */
   
 /*  /*
  * Copyright (c) 1997 The NetBSD Foundation, Inc.   * Copyright (c) 1997 The NetBSD Foundation, Inc.
Line 37 
Line 37 
  */   */
   
 #include <stdio.h>  #include <stdio.h>
   #include <stdlib.h>
 #include <fcntl.h>  #include <fcntl.h>
 #include <err.h>  #include <err.h>
 #include <unistd.h>  #include <unistd.h>
Line 335 
Line 336 
         int fd, i, ch;          int fd, i, ch;
         int aflag = 0, wflag = 0;          int aflag = 0, wflag = 0;
         struct stat dstat, ostat;          struct stat dstat, ostat;
         char *file = "/dev/audioctl";          char *file;
         char *sep = "=";          char *sep = "=";
   
           file = getenv("AUDIOCTLDEVICE");
           if (file == 0)
                   file = "/dev/audioctl";
   
         prog = *argv;          prog = *argv;
   
         while ((ch = getopt(argc, argv, "af:nw")) != -1) {          while ((ch = getopt(argc, argv, "af:nw")) != -1) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3