=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ypwhich/ypwhich.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/ypwhich/ypwhich.c 1999/03/20 15:36:12 1.11 --- src/usr.bin/ypwhich/ypwhich.c 2002/06/02 06:42:28 1.12 *************** *** 1,4 **** ! /* $OpenBSD: ypwhich.c,v 1.11 1999/03/20 15:36:12 maja Exp $ */ /* $NetBSD: ypwhich.c,v 1.6 1996/05/13 02:43:48 thorpej Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: ypwhich.c,v 1.12 2002/06/02 06:42:28 deraadt Exp $ */ /* $NetBSD: ypwhich.c,v 1.6 1996/05/13 02:43:48 thorpej Exp $ */ /* *************** *** 34,40 **** */ #ifndef LINT ! static char rcsid[] = "$Id: ypwhich.c,v 1.11 1999/03/20 15:36:12 maja Exp $"; #endif #include --- 34,40 ---- */ #ifndef LINT ! static char rcsid[] = "$Id: ypwhich.c,v 1.12 2002/06/02 06:42:28 deraadt Exp $"; #endif #include *************** *** 162,168 **** errx(1, "YP domain name not set"); while ((c = getopt(argc, argv, "xd:h:mt")) != -1) ! switch(c) { case 'x': for (i=0; imap, &master); } ! switch(r) { case 0: printf("%s %s\n", ypml->map, master); free(master); --- 269,275 ---- } else { r = yp_master(domain, ypml->map, &master); } ! switch (r) { case 0: printf("%s %s\n", ypml->map, master); free(master);