pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk show-shlib-type: use return(0) instead of exit(0). ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cd61f00f2953
branches:  trunk
changeset: 466146:cd61f00f2953
user:      grant <grant%pkgsrc.org@localhost>
date:      Mon Jan 12 10:08:37 2004 +0000

description:
show-shlib-type: use return(0) instead of exit(0). eliminates a
warning from non-gcc. ok'd by agc.

diffstat:

 mk/bsd.pkg.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5e92f9c90ad6 -r cd61f00f2953 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Mon Jan 12 10:08:16 2004 +0000
+++ b/mk/bsd.pkg.mk     Mon Jan 12 10:08:37 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1342 2004/01/10 09:52:56 grant Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1343 2004/01/12 10:08:37 grant Exp $
 #
 # This file is in the public domain.
 #
@@ -2983,7 +2983,7 @@
        cd ${WRKDIR} &&                                                 \
        sotype=none;                                                    \
        if [ "X${MKPIC}" != "Xno" -a "X${NOPIC}" = "X" ]; then          \
-               ${ECHO} "int main() { exit(0); }" > a.$$$$.c;           \
+               ${ECHO} "int main() { return(0); }" > a.$$$$.c;         \
                ${CC} ${CFLAGS} a.$$$$.c -o a.$$$$.out;                 \
                case `${FILE_CMD} a.$$$$.out` in                        \
                *ELF*dynamically*)                                      \



Home | Main Index | Thread Index | Old Index