pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/lib Return the documented v...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/99686ff11a78
branches:  trunk
changeset: 460937:99686ff11a78
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Sep 08 02:07:42 2003 +0000

description:
Return the documented value "0" instead of EXIT_SUCCESS, which while it may
happen to be "0", isn't what's being explicitly returned.

diffstat:

 pkgtools/pkg_install/files/lib/pkgdb.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 81076fb9b428 -r 99686ff11a78 pkgtools/pkg_install/files/lib/pkgdb.c
--- a/pkgtools/pkg_install/files/lib/pkgdb.c    Mon Sep 08 01:36:45 2003 +0000
+++ b/pkgtools/pkg_install/files/lib/pkgdb.c    Mon Sep 08 02:07:42 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pkgdb.c,v 1.14 2003/09/03 12:32:50 jlam Exp $  */
+/*     $NetBSD: pkgdb.c,v 1.15 2003/09/08 02:07:42 jlam Exp $  */
 
 #if HAVE_CONFIG_H
 #include "config.h"
@@ -8,7 +8,7 @@
 #include <sys/cdefs.h>
 #endif
 #ifndef lint
-__RCSID("$NetBSD: pkgdb.c,v 1.14 2003/09/03 12:32:50 jlam Exp $");
+__RCSID("$NetBSD: pkgdb.c,v 1.15 2003/09/08 02:07:42 jlam Exp $");
 #endif
 
 /*
@@ -259,11 +259,11 @@
 
 int    pkgdb_open(int mode) { return -1; }
 void   pkgdb_close(void) {}
-int    pkgdb_store(const char *key, const char *val) { return EXIT_SUCCESS; }
+int    pkgdb_store(const char *key, const char *val) { return 0; }
 char   *pkgdb_retrieve(const char *key) { return NULL; }
 void   pkgdb_dump(void) {}
-int    pkgdb_remove(const char *key) { return EXIT_SUCCESS; }
-int    pkgdb_remove_pkg(const char *pkg) { return EXIT_SUCCESS; }
+int    pkgdb_remove(const char *key) { return 0; }
+int    pkgdb_remove_pkg(const char *pkg) { return 0; }
 
 #endif /* HAVE_DBOPEN */
 



Home | Main Index | Thread Index | Old Index