diff options
author | Stefan Kempf <stefan@cvs.openbsd.org> | 2007-10-08 12:02:13 +0000 |
---|---|---|
committer | Stefan Kempf <stefan@cvs.openbsd.org> | 2007-10-08 12:02:13 +0000 |
commit | de3e501d0aa59756dc0d1f4ae0dae3c1c28d0897 (patch) | |
tree | 37f146c5884203848529cc2f801e4b6a178cd1ea /usr.bin/pcc | |
parent | b17bbacc62ee672e65647a03b85504e6a19f0549 (diff) |
Remove two unneeded macro definitions, replace strdup() with copy() which
does error checking.
otto@, ragge@ ok
Diffstat (limited to 'usr.bin/pcc')
-rw-r--r-- | usr.bin/pcc/cc/cc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/pcc/cc/cc.c b/usr.bin/pcc/cc/cc.c index a7f26377ed8..9d273a55432 100644 --- a/usr.bin/pcc/cc/cc.c +++ b/usr.bin/pcc/cc/cc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cc.c,v 1.2 2007/10/07 18:39:03 otto Exp $ */ +/* $OpenBSD: cc.c,v 1.3 2007/10/08 12:02:12 stefan Exp $ */ /* * Copyright(C) Caldera International Inc. 2001-2002. All rights reserved. * @@ -74,8 +74,6 @@ */ #define STDINC "/usr/include" -#define SBSIZE 10000 -#define MAXINC 100 #define MAXFIL 10000 #define MAXLIB 10000 #define MAXAV 10000 @@ -761,9 +759,9 @@ char *f; } char * -gettmp() +gettmp(void) { - char *sfn = strdup("/tmp/ctm.XXXXXX"); + char *sfn = copy("/tmp/ctm.XXXXXX"); int fd = -1; if ((fd = mkstemp(sfn)) == -1) { |