diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 03:57:47 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 03:57:47 +0000 |
commit | 4f960dd75f181e9fa2edc44324f15f0ab5c64b37 (patch) | |
tree | 15a9c7203efd47ba6dde2896fdb6327dddd4547f /usr.sbin/pkg_install/info/show.c | |
parent | 30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 (diff) | |
download | FreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.zip FreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'usr.sbin/pkg_install/info/show.c')
-rw-r--r-- | usr.sbin/pkg_install/info/show.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/pkg_install/info/show.c b/usr.sbin/pkg_install/info/show.c index e9a6cc8..b1c29b3 100644 --- a/usr.sbin/pkg_install/info/show.c +++ b/usr.sbin/pkg_install/info/show.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: show.c,v 1.4 1994/12/06 00:51:46 jkh Exp $"; +static const char *rcsid = "$Id: show.c,v 1.5 1995/01/05 01:10:13 swallace Exp $"; #endif /* @@ -51,14 +51,14 @@ show_index(char *title, char *fname) FILE *fp; char line[MAXINDEXSIZE+2]; int i,n; - + if (!Quiet) printf("%s%s", InfoPrefix, title); fp = fopen(fname, "r"); if (!fp) { whinge("show_file: Can't open '%s' for reading.", fname); return; - } + } if(fgets(line, MAXINDEXSIZE+1, fp)) { if(line[MAXINDEXSIZE-1] != '\n') line[MAXINDEXSIZE] = '\n'; @@ -66,7 +66,7 @@ show_index(char *title, char *fname) fputs(line, stdout); } fclose(fp); -} +} /* Show a packing list item type. If type is -1, show all */ void @@ -92,7 +92,7 @@ show_plist(char *title, Package *plist, plist_t type) else printf(Quiet ? "%s\n" : "File: %s\n", p->name); break; - + case PLIST_CWD: printf(Quiet ? "@cwd %s\n" : "\tCWD to %s\n", p->name); break; @@ -180,7 +180,7 @@ show_files(char *title, Package *plist) printf("%s/%s\n", dir, p->name); ign = FALSE; break; - + case PLIST_CWD: dir = p->name; break; |