Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/pkg_install/lib * Move comment around a bit



details:   https://anonhg.NetBSD.org/src/rev/3577d05fba96
branches:  trunk
changeset: 494339:3577d05fba96
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Wed Jul 05 20:17:04 2000 +0000

description:
* 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 3cf5ca3e52c0 -r 3577d05fba96 usr.sbin/pkg_install/lib/plist.c
--- a/usr.sbin/pkg_install/lib/plist.c  Wed Jul 05 19:24:35 2000 +0000
+++ b/usr.sbin/pkg_install/lib/plist.c  Wed Jul 05 20:17:04 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.27 2000/07/05 20:17:04 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.27 2000/07/05 20:17:04 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