logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: af65b632f38aa178d5e137b863a20e7fc2f21e8b
parent 264c59cc6bd0625622321ce9302cb689cc6766aa
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 18 Sep 2024 08:04:33 +0200

cmd/link: use fputs instead of fprintf

Diffstat:

Mcmd/link.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/link.c b/cmd/link.c @@ -3,7 +3,7 @@ // SPDX-License-Identifier: MPL-2.0 #define _POSIX_C_SOURCE 200809L -#include <stdio.h> /* perror, fprintf */ +#include <stdio.h> /* perror, fputs */ #include <unistd.h> /* link */ int @@ -11,7 +11,7 @@ main(int argc, char *argv[]) { if(argc != 3) { - fprintf(stderr, "usage: link <reference> <destination>\n"); + fputs("usage: link <reference> <destination>\n", stderr); return 1; }