summaryrefslogtreecommitdiff
path: root/tempfile.c
diff options
context:
space:
mode:
authorClint Adams <schizo@debian.org>2009-03-23 20:59:34 -0400
committerClint Adams <schizo@debian.org>2009-03-23 21:46:59 -0400
commitf70f1d3e69d8795b427f6afb6a935318632344ce (patch)
tree8180e5fac5f12fb69a8e89a486f27181f5147d68 /tempfile.c
parent8177451d9f10fbaffcbd215ccd7854c094d812ff (diff)
downloaddebianutils-f70f1d3e69d8795b427f6afb6a935318632344ce.tar.gz
tempfile.c: minor tweaks.
Diffstat (limited to 'tempfile.c')
-rw-r--r--tempfile.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tempfile.c b/tempfile.c
index 11e46cc..1fc50d6 100644
--- a/tempfile.c
+++ b/tempfile.c
@@ -12,6 +12,10 @@
char *progname;
+void usage(int);
+void syserror(const char *);
+int parsemode(const char *, mode_t *);
+
void
usage (int status)
{
@@ -91,7 +95,7 @@ main (int argc, char **argv)
}
break;
case 'n':
- // strdup because it is freed later on
+ /* strdup because it is freed later on */
if((name = strdup(optarg)) == NULL)
syserror("strdup");
break;
@@ -109,7 +113,6 @@ main (int argc, char **argv)
if ((fd = open(name, O_RDWR | O_CREAT | O_EXCL, mode)) < 0)
syserror("open");
}
-
else {
for (;;) {
if (!(name = tempnam(dir, pfx)))