commit: 43ebed05b353a91a9717869880017d8dd0c46539
parent 686474c85a4bd6ad53d56eaa82cef11358edd898
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 20 Sep 2024 02:56:53 +0200
cmd/logname: unify error message formatting
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd/logname.c b/cmd/logname.c
@@ -13,13 +13,13 @@ main(void)
char *logname = getenv("LOGNAME");
if(logname == NULL)
{
- fputs("logname: Error $LOGNAME isn't set (didn't login?)\n", stderr);
+ fputs("logname: error: $LOGNAME isn't set (didn't login?)\n", stderr);
return 1;
}
if(puts(logname) < 0)
{
- perror("logname: puts");
+ perror("logname: error: puts");
return 1;
}