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/add Remove a close(-1) as h...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8f30f4205a4f
branches:  trunk
changeset: 555448:8f30f4205a4f
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Mar 02 15:30:45 2009 +0000

description:
Remove a close(-1) as hinted by wiz.

diffstat:

 pkgtools/pkg_install/files/add/perform.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 43ca0e109918 -r 8f30f4205a4f pkgtools/pkg_install/files/add/perform.c
--- a/pkgtools/pkg_install/files/add/perform.c  Mon Mar 02 15:15:06 2009 +0000
+++ b/pkgtools/pkg_install/files/add/perform.c  Mon Mar 02 15:30:45 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: perform.c,v 1.82 2009/03/02 14:59:14 joerg Exp $       */
+/*     $NetBSD: perform.c,v 1.83 2009/03/02 15:30:45 joerg Exp $       */
 #if HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -6,7 +6,7 @@
 #if HAVE_SYS_CDEFS_H
 #include <sys/cdefs.h>
 #endif
-__RCSID("$NetBSD: perform.c,v 1.82 2009/03/02 14:59:14 joerg Exp $");
+__RCSID("$NetBSD: perform.c,v 1.83 2009/03/02 15:30:45 joerg Exp $");
 
 /*-
  * Copyright (c) 2003 Grant Beattie <grant%NetBSD.org@localhost>
@@ -776,7 +776,6 @@
                if (fd == -1) {
                        warn("can't open dependency file '%s',"
                            "registration is incomplete!", required_by);
-                       close(fd);
                } else if (write(fd, text, text_len) != text_len) {
                        warn("can't write to dependency file `%s'", required_by);
                        close(fd);



Home | Main Index | Thread Index | Old Index