Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.sbin/pkg_install/lib Pull up rev. 1.27, approved by...



details:   https://anonhg.NetBSD.org/src/rev/405cece203be
branches:  netbsd-1-5
changeset: 488436:405cece203be
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Wed Jul 05 20:38:52 2000 +0000

description:
Pull up rev. 1.27, approved by thorpej:
 * Move comment around a bit
 * Document some return code

diffstat:

 usr.sbin/pkg_install/lib/plist.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 712bee12c03e -r 405cece203be usr.sbin/pkg_install/lib/plist.c
--- a/usr.sbin/pkg_install/lib/plist.c  Wed Jul 05 18:35:06 2000 +0000
+++ b/usr.sbin/pkg_install/lib/plist.c  Wed Jul 05 20:38:52 2000 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: plist.c,v 1.26 2000/04/30 07:57:45 mycroft Exp $       */
+/*     $NetBSD: plist.c,v 1.26.4.1 2000/07/05 20:38:52 hubertf Exp $   */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: plist.c,v 1.24 1997/10/08 07:48:15 charnier Exp";
 #else
-__RCSID("$NetBSD: plist.c,v 1.26 2000/04/30 07:57:45 mycroft Exp $");
+__RCSID("$NetBSD: plist.c,v 1.26.4.1 2000/07/05 20:38:52 hubertf Exp $");
 #endif
 #endif
 
@@ -366,8 +366,8 @@
                                    "this packing list is incorrect - ignoring delete request", tmp);
                        } else {
                                if (p->next &&
-                                   p->next->type == PLIST_COMMENT &&
-                                   strncmp(p->next->name, CHECKSUM_HEADER, ChecksumHeaderLen) == 0) {  /* || PLIST_MD5 - HF */
+                                   p->next->type == PLIST_COMMENT && /* || PLIST_MD5 - HF */
+                                   strncmp(p->next->name, CHECKSUM_HEADER, ChecksumHeaderLen) == 0) {
                                        char   *cp, buf[LegibleChecksumLen];
 
                                        if ((cp = MD5File(tmp, buf)) != NULL) {
@@ -461,6 +461,7 @@
 
 /*
  * Selectively delete a hierarchy
+ * Returns 1 on error, 0 else.
  */
 int
 delete_hierarchy(char *dir, Boolean ign_err, Boolean nukedirs)



Home | Main Index | Thread Index | Old Index