diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-05-29 01:34:37 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-05-29 01:34:37 +0000 |
commit | 7207e8cbd31170b05b17c9534a8005f2d9a53262 (patch) | |
tree | 5dbce599c020effb7d211bdeec801fe845e6bd06 /bin/chio | |
parent | 27a16b790c0ecf158549999962e91682aa8b2955 (diff) |
de-beckify (KNF)
Diffstat (limited to 'bin/chio')
-rw-r--r-- | bin/chio/parse.y | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/bin/chio/parse.y b/bin/chio/parse.y index e093ff6df8d..2f263b0e09f 100644 --- a/bin/chio/parse.y +++ b/bin/chio/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.1 2006/05/29 01:21:38 beck Exp $ */ +/* $OpenBSD: parse.y,v 1.2 2006/05/29 01:34:36 henning Exp $ */ /* * Copyright (c) 2006 Bob Beck <beck@openbsd.org> @@ -337,7 +337,7 @@ parse_tapedev(const char *filename, const char *changer, int drive) goto guess; infile = filename; - + yyparse(); fclose(fin); @@ -346,10 +346,9 @@ parse_tapedev(const char *filename, const char *changer, int drive) if (strcmp(basename(changer), p->name) == 0) { if (drive >= 0 && drive < p->drivecnt) { if (asprintf(&tapedev, "/dev/%s", - p->drives[drive]) == -1) + p->drives[drive]) == -1) errx(1, "malloc failed"); - } - else + } else tapedev = NULL; } } @@ -359,8 +358,7 @@ guess: if (tapedev == NULL) if (asprintf(&tapedev, "/dev/rst%d", drive) == -1) errx(1, "malloc failed"); - return(tapedev); - + return (tapedev); } struct changer * |