summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-09-03 11:59:14 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-09-03 11:59:14 -0400
commit371f36fe7a3cf69da00d6133e89cea584f86e073 (patch)
treed1c24dec31c72ee31db4ff9f9dd654b858608e68
parente12334d3d277855d5ea0c75a83be6b8659feadc0 (diff)
nshd-tester: don't assume that arg 3 to error(3) is localizable
Most of the time it's just a syscall name, which shouldn't be localized. It was inconsistent on this before.
-rw-r--r--bin/nshd-tester.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/nshd-tester.c b/bin/nshd-tester.c
index 6e52166..80bf3ba 100644
--- a/bin/nshd-tester.c
+++ b/bin/nshd-tester.c
@@ -67,7 +67,7 @@ sigchld_handler(int sig __attribute__((__unused__))) {
int status;
pid = waitpid(pid, &status, WNOHANG);
int exited = WEXITSTATUS(status);
- error(exited, 0, "%ld exited with status %d", (long)pid, exited);
+ error(exited, 0, _("%ld exited with status %d"), (long)pid, exited);
exit(0);
}
@@ -96,7 +96,7 @@ int new_unix_sock(const char *filename, int type) {
case SOCK_DGRAM:
break;
default:
- error(EXIT_FAILURE, errno, "new_unix_sock: Unrecognized type: %d", type);
+ error(EXIT_FAILURE, errno, _("new_unix_sock: Unrecognized type: %d"), type);
}
return sock;
}