-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).
This commit is contained in:
parent
385a585a4b
commit
558e2b6950
@ -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 */
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user