projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
procd: Remove redundant errno variable in several printf functions.
[project/procd.git]
/
utils
/
utils.c
diff --git
a/utils/utils.c
b/utils/utils.c
index
57c82eb
..
c5b9513
100644
(file)
--- a/
utils/utils.c
+++ b/
utils/utils.c
@@
-203,8
+203,8
@@
int patch_stdio(const char *device)
for (fd = STDIN_FILENO; fd <= STDERR_FILENO; fd++) {
if (patch_fd(device, fd, fd ? O_WRONLY : O_RDONLY)) {
for (fd = STDIN_FILENO; fd <= STDERR_FILENO; fd++) {
if (patch_fd(device, fd, fd ? O_WRONLY : O_RDONLY)) {
- ERROR("Failed to redirect %s to %s: %
d (%m)
\n",
- fdname[fd], device
, errno
);
+ ERROR("Failed to redirect %s to %s: %
m
\n",
+ fdname[fd], device);
rv = -1;
}
}
rv = -1;
}
}