summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2005-01-14 13:18:55 +0000
committerdelphij <delphij@FreeBSD.org>2005-01-14 13:18:55 +0000
commitd7e35203c706dd9dfd06d90bf19ca74e0f9d1dda (patch)
treece9795511414722be907199050aaed92e9c3de36
parentf52cd9a81d7c25ee20f254f795e7a5ecbfad14c0 (diff)
downloadFreeBSD-src-d7e35203c706dd9dfd06d90bf19ca74e0f9d1dda.zip
FreeBSD-src-d7e35203c706dd9dfd06d90bf19ca74e0f9d1dda.tar.gz
Use a better name than underscore-tmpfile for better representation
of the meaning. Suggested by: stefanf
-rw-r--r--sbin/ldconfig/ldconfig.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/ldconfig/ldconfig.c b/sbin/ldconfig/ldconfig.c
index 075d129..8f5fb91 100644
--- a/sbin/ldconfig/ldconfig.c
+++ b/sbin/ldconfig/ldconfig.c
@@ -402,7 +402,7 @@ buildhints()
int strtab_sz = 0; /* Total length of strings */
int nhints = 0; /* Total number of hints */
int fd;
- char *_tmpfile;
+ char *tmpfilename;
for (shp = shlib_head; shp; shp = shp->next) {
strtab_sz += 1 + strlen(shp->name);
@@ -482,10 +482,10 @@ buildhints()
errx(1, "str_index(%d) != strtab_sz(%d)", str_index, strtab_sz);
}
- _tmpfile = concat(hints_file, ".XXXXXXXXXX", "");
+ tmpfilename = concat(hints_file, ".XXXXXXXXXX", "");
umask(0); /* Create with exact permissions */
- if ((fd = mkstemp(_tmpfile)) == -1) {
- warn("%s", _tmpfile);
+ if ((fd = mkstemp(tmpfilename)) == -1) {
+ warn("%s", tmpfilename);
return -1;
}
fchmod(fd, 0444);
@@ -515,7 +515,7 @@ buildhints()
return -1;
}
- if (rename(_tmpfile, hints_file) != 0) {
+ if (rename(tmpfilename, hints_file) != 0) {
warn("%s", hints_file);
return -1;
}
OpenPOWER on IntegriCloud