commit: 264c59cc6bd0625622321ce9302cb689cc6766aa
parent e6c3866ebddb8411acf5739f5c3cf804d1383857
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 18 Sep 2024 07:59:42 +0200
cmd/arch: use perror instead of fprintf
26K -> 13K for x86_64-pc-linux-musl-clang -O2 -s -static-pie
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd/arch.c b/cmd/arch.c
@@ -15,13 +15,13 @@ main(void)
struct utsname name;
if(uname(&name) < 0)
{
- fprintf(stderr, "arch: Failed to get system name: %s\n", strerror(errno));
+ perror("arch: Failed to get system name");
return 1;
}
if(puts(name.machine) < 0)
{
- fprintf(stderr, "arch: Failed to write machine architecture: %s\n", strerror(errno));
+ perror("arch: Failed to write machine architecture");
return 1;
}