diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-05 16:19:37 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-05 16:19:37 +0000 |
commit | 1348f2f5923d42addae6ec1ae94d21f4ffa0c702 (patch) | |
tree | 5939307d1ca4f99820d625e8f228a34e194d040d /usr.bin | |
parent | 126c90806d7e72dfe19715bdd30b624736d5ca69 (diff) |
mv notrans out of loop and change my name
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ypcat/ypcat.c | 14 | ||||
-rw-r--r-- | usr.bin/ypmatch/ypmatch.c | 15 |
2 files changed, 18 insertions, 11 deletions
diff --git a/usr.bin/ypcat/ypcat.c b/usr.bin/ypcat/ypcat.c index ff166e5483e..c72e7150a77 100644 --- a/usr.bin/ypcat/ypcat.c +++ b/usr.bin/ypcat/ypcat.c @@ -1,5 +1,7 @@ +/* $OpenBSD: ypcat.c,v 1.3 1996/05/05 16:19:31 deraadt 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. * * Redistribution and use in source and binary forms, with or without @@ -31,7 +33,7 @@ */ #ifndef LINT -static char rcsid[] = "$Id: ypcat.c,v 1.2 1996/04/24 21:40:13 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ypcat.c,v 1.3 1996/05/05 16:19:31 deraadt Exp $"; #endif #include <sys/param.h> @@ -124,9 +126,11 @@ char **argv; usage(); inmap = argv[optind]; - for(i=0; (!notrans) && i<sizeof ypaliases/sizeof ypaliases[0]; i++) - if( strcmp(inmap, ypaliases[i].alias) == 0) - inmap = ypaliases[i].name; + if (!notrans) { + for(i=0; i<sizeof ypaliases/sizeof ypaliases[0]; i++) + if( strcmp(inmap, ypaliases[i].alias) == 0) + inmap = ypaliases[i].name; + } ypcb.foreach = printit; ypcb.data = NULL; diff --git a/usr.bin/ypmatch/ypmatch.c b/usr.bin/ypmatch/ypmatch.c index 534b7a60c2c..4d516ab7126 100644 --- a/usr.bin/ypmatch/ypmatch.c +++ b/usr.bin/ypmatch/ypmatch.c @@ -1,7 +1,8 @@ -/* $NetBSD: ypmatch.c,v 1.5 1994/12/24 16:56:47 cgd Exp $ */ +/* $OpenBSD: ypmatch.c,v 1.3 1996/05/05 16:19:36 deraadt Exp $ */ +/* $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. * * Redistribution and use in source and binary forms, with or without @@ -33,7 +34,7 @@ */ #ifndef LINT -static char rcsid[] = "$NetBSD: ypmatch.c,v 1.5 1994/12/24 16:56:47 cgd Exp $"; +static char rcsid[] = "$OpenBSD: ypmatch.c,v 1.3 1996/05/05 16:19:36 deraadt Exp $"; #endif #include <sys/param.h> @@ -113,9 +114,11 @@ char **argv; usage(); inmap = argv[argc-1]; - for(i=0; (!notrans) && i<sizeof ypaliases/sizeof ypaliases[0]; i++) - if( strcmp(inmap, ypaliases[i].alias) == 0) - inmap = ypaliases[i].name; + if (!notrans) { + for(i=0; i<sizeof ypaliases/sizeof ypaliases[0]; i++) + if( strcmp(inmap, ypaliases[i].alias) == 0) + inmap = ypaliases[i].name; + } for(; optind < argc-1; optind++) { inkey = argv[optind]; |