=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ypmatch/ypmatch.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/ypmatch/ypmatch.c 2002/06/02 06:42:28 1.7 --- src/usr.bin/ypmatch/ypmatch.c 2002/07/19 03:22:39 1.8 *************** *** 1,4 **** ! /* $OpenBSD: ypmatch.c,v 1.7 2002/06/02 06:42:28 deraadt Exp $ */ /* $NetBSD: ypmatch.c,v 1.8 1996/05/07 01:24:52 jtc Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: ypmatch.c,v 1.8 2002/07/19 03:22:39 deraadt Exp $ */ /* $NetBSD: ypmatch.c,v 1.8 1996/05/07 01:24:52 jtc Exp $ */ /* *************** *** 34,40 **** */ #ifndef LINT ! static char rcsid[] = "$OpenBSD: ypmatch.c,v 1.7 2002/06/02 06:42:28 deraadt Exp $"; #endif #include --- 34,40 ---- */ #ifndef LINT ! static char rcsid[] = "$OpenBSD: ypmatch.c,v 1.8 2002/07/19 03:22:39 deraadt Exp $"; #endif #include *************** *** 64,70 **** }; void ! usage() { fprintf(stderr, "Usage:\n"); fprintf(stderr, "\typmatch [-d domain] [-t] [-k] key [key ...] mname\n"); --- 64,70 ---- }; void ! usage(void) { fprintf(stderr, "Usage:\n"); fprintf(stderr, "\typmatch [-d domain] [-t] [-k] key [key ...] mname\n"); *************** *** 78,97 **** } int ! main(argc, argv) ! char **argv; { ! char *domainname; ! char *inkey, *inmap, *outbuf; extern char *optarg; extern int optind; ! int outbuflen, key, notrans; int c, r, i; - int rval; domainname = NULL; notrans = key = 0; ! while( (c=getopt(argc, argv, "xd:kt")) != -1) switch (c) { case 'x': for(i=0; i