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

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

version 1.2, 1996/04/22 08:15:47 version 1.3, 1996/05/05 16:19:36
Line 1 
Line 1 
 /*      $NetBSD: ypmatch.c,v 1.5 1994/12/24 16:56:47 cgd Exp $  */  /*      $OpenBSD$ */
   /*      $NetBSD: ypmatch.c,v 1.6 1996/04/30 22:58:31 jtc Exp $  */
   
 /*  /*
  * Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>   * Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com>
  * All rights reserved.   * All rights reserved.
  *   *
  * Redistribution and use in source and binary forms, with or without   * Redistribution and use in source and binary forms, with or without
Line 33 
Line 34 
  */   */
   
 #ifndef LINT  #ifndef LINT
 static char rcsid[] = "$NetBSD: ypmatch.c,v 1.5 1994/12/24 16:56:47 cgd Exp $";  static char rcsid[] = "$OpenBSD$";
 #endif  #endif
   
 #include <sys/param.h>  #include <sys/param.h>
Line 113 
Line 114 
                 usage();                  usage();
   
         inmap = argv[argc-1];          inmap = argv[argc-1];
         for(i=0; (!notrans) && i<sizeof ypaliases/sizeof ypaliases[0]; i++)          if (!notrans) {
                 if( strcmp(inmap, ypaliases[i].alias) == 0)                  for(i=0; i<sizeof ypaliases/sizeof ypaliases[0]; i++)
                         inmap = ypaliases[i].name;                          if( strcmp(inmap, ypaliases[i].alias) == 0)
                                   inmap = ypaliases[i].name;
           }
         for(; optind < argc-1; optind++) {          for(; optind < argc-1; optind++) {
                 inkey = argv[optind];                  inkey = argv[optind];
   

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