diff mbox series

[05/22] main: Remove g_printerr use

Message ID 20240226033724.1460079-5-denkenz@gmail.com (mailing list archive)
State Superseded, archived
Headers show
Series [01/22] gprs: Remove g_strfreev and g_strdupv use | expand

Commit Message

Denis Kenzior Feb. 26, 2024, 3:36 a.m. UTC
Replace by fprintf(stderr, ...)
---
 src/main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/src/main.c b/src/main.c
index 82157700b6ac..141853eef8ae 100644
--- a/src/main.c
+++ b/src/main.c
@@ -210,19 +210,19 @@  int main(int argc, char **argv)
 
 	if (g_option_context_parse(context, &argc, &argv, &err) == FALSE) {
 		if (err != NULL) {
-			g_printerr("%s\n", err->message);
+			fprintf(stderr, "%s\n", err->message);
 			g_error_free(err);
 			return 1;
 		}
 
-		g_printerr("An unknown error occurred\n");
+		fprintf(stderr, "An unknown error occurred\n");
 		return 1;
 	}
 
 	g_option_context_free(context);
 
 	if (option_version == TRUE) {
-		printf("%s\n", VERSION);
+		fprintf(stdout, "%s\n", VERSION);
 		exit(0);
 	}