Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/sort simplify a bit (no need for separate 'char *path')
details: https://anonhg.NetBSD.org/src/rev/75a8aa6c0dcb
branches: trunk
changeset: 540771:75a8aa6c0dcb
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Mon Dec 23 20:14:26 2002 +0000
description:
simplify a bit (no need for separate 'char *path')
diffstat:
usr.bin/sort/tmp.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 6ac4517006b7 -r 75a8aa6c0dcb usr.bin/sort/tmp.c
--- a/usr.bin/sort/tmp.c Mon Dec 23 20:05:06 2002 +0000
+++ b/usr.bin/sort/tmp.c Mon Dec 23 20:14:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tmp.c,v 1.8 2001/02/23 08:59:49 jdolecek Exp $ */
+/* $NetBSD: tmp.c,v 1.9 2002/12/23 20:14:26 jdolecek Exp $ */
/*-
* Copyright (c) 1993
@@ -39,7 +39,7 @@
#include <ctype.h>
#ifndef lint
-__RCSID("$NetBSD: tmp.c,v 1.8 2001/02/23 08:59:49 jdolecek Exp $");
+__RCSID("$NetBSD: tmp.c,v 1.9 2002/12/23 20:14:26 jdolecek Exp $");
__SCCSID("@(#)tmp.c 8.1 (Berkeley) 6/6/93");
#endif /* not lint */
@@ -65,10 +65,9 @@
sigset_t set, oset;
FILE *fp;
int fd;
- char pathb[MAXPATHLEN], *path;
+ char path[MAXPATHLEN];
- path = pathb;
- (void)snprintf(path, sizeof(pathb), "%s%s%s", tmpdir,
+ (void)snprintf(path, sizeof(path), "%s%s%s", tmpdir,
(tmpdir[strlen(tmpdir)-1] != '/') ? "/" : "", _NAME_TMP);
sigfillset(&set);
Home |
Main Index |
Thread Index |
Old Index