Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xinstall Move __MKTEMP_OK up earlier so it has an ac...



details:   https://anonhg.NetBSD.org/src/rev/14fd94250bf0
branches:  trunk
changeset: 815669:14fd94250bf0
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Tue May 31 06:55:02 2016 +0000

description:
Move __MKTEMP_OK up earlier so it has an actual impact.  Reduces the
number of warnings during build.

XXX There are still some other warnings remaining to be resolved.

Fixes PR bin/48195 although we really should go back someday and fix
this correctly (by replacing all uses of mktemp(3)!)

diffstat:

 usr.bin/xinstall/xinstall.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 8d41b1ade65f -r 14fd94250bf0 usr.bin/xinstall/xinstall.c
--- a/usr.bin/xinstall/xinstall.c       Tue May 31 06:00:38 2016 +0000
+++ b/usr.bin/xinstall/xinstall.c       Tue May 31 06:55:02 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xinstall.c,v 1.124 2015/06/19 17:20:02 christos Exp $  */
+/*     $NetBSD: xinstall.c,v 1.125 2016/05/31 06:55:02 pgoyette Exp $  */
 
 /*
  * Copyright (c) 1987, 1993
@@ -29,6 +29,8 @@
  * SUCH DAMAGE.
  */
 
+#define __MKTEMP_OK__  /* All uses of mktemp have been checked */
+
 #if HAVE_NBTOOL_CONFIG_H
 #include "nbtool_config.h"
 #else
@@ -46,11 +48,10 @@
 #if 0
 static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
 #else
-__RCSID("$NetBSD: xinstall.c,v 1.124 2015/06/19 17:20:02 christos Exp $");
+__RCSID("$NetBSD: xinstall.c,v 1.125 2016/05/31 06:55:02 pgoyette Exp $");
 #endif
 #endif /* not lint */
 
-#define __MKTEMP_OK__  /* All uses of mktemp have been checked */
 #include <sys/param.h>
 #include <sys/mman.h>
 #include <sys/stat.h>



Home | Main Index | Thread Index | Old Index