diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-02-05 09:56:52 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-02-05 09:56:52 +0000 |
commit | 0a210be9ab1b414a3fdf3e4e1332bdce0a0a101b (patch) | |
tree | 24fa264e31caaf83a514d4733337a51c9ce5686e /usr.sbin/pkg_install | |
parent | d59879728c9e3a732c50a70ba637959a82efd66b (diff) | |
download | FreeBSD-src-0a210be9ab1b414a3fdf3e4e1332bdce0a0a101b.zip FreeBSD-src-0a210be9ab1b414a3fdf3e4e1332bdce0a0a101b.tar.gz |
-pedantic mode:
- Add a missed prototype for the recently added show_cksum() function;
- put in "explicit braces to avoid ambitious else" suggested by gcc(1).
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r-- | usr.sbin/pkg_install/info/info.h | 1 | ||||
-rw-r--r-- | usr.sbin/pkg_install/info/show.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/info/info.h b/usr.sbin/pkg_install/info/info.h index df4389e..cbd5cfe 100644 --- a/usr.sbin/pkg_install/info/info.h +++ b/usr.sbin/pkg_install/info/info.h @@ -59,6 +59,7 @@ extern void show_plist(char *, Package *, plist_t); extern void show_files(char *, Package *); extern void show_index(char *, char *); extern void show_size(char *, Package *); +extern void show_cksum(char *, Package *); extern void show_origin(char *, Package *); #endif /* _INST_INFO_H_INCLUDE */ diff --git a/usr.sbin/pkg_install/info/show.c b/usr.sbin/pkg_install/info/show.c index ea544b2..463c1b6 100644 --- a/usr.sbin/pkg_install/info/show.c +++ b/usr.sbin/pkg_install/info/show.c @@ -278,11 +278,12 @@ show_cksum(char *title, Package *plist) warnx("%s doesn't exist\n", tmp); else if (p->next && p->next->type == PLIST_COMMENT && !strncmp(p->next->name, "MD5:", 4)) { char *cp, buf[33]; - if ((cp = MD5File(tmp, buf)) != NULL) + if ((cp = MD5File(tmp, buf)) != NULL) { if (strcmp(cp, p->next->name + 4)) printf("%s fails the original MD5 checksum\n", tmp); else if (Verbose) printf("%s matched the original MD5 checksum\n", tmp); + } } } } |