Description: fix gcc warnings
 Use NULL where it helps the compiler, and eliminate unnecessary gcc-isms.
Author: Thomas E. Dickey <dickey@invisible-island.net>
Origin: other
Applied-Upstream: not-needed
Last-Update: 2026-02-08

--- libutempter-1.2.1.orig/iface.c
+++ libutempter-1.2.1/iface.c
@@ -110,7 +110,7 @@ execute_helper(int master_fd, const char
 		}
 
 	      ret:
-		(void) sigaction(SIGCHLD, &saved_action, 0);
+		(void) sigaction(SIGCHLD, &saved_action, NULL);
 		return !status;
 	}
 }
@@ -121,10 +121,10 @@ int
 utempter_add_record(int master_fd, const char *hostname)
 {
 	const char *const args[] = {
-		utempter_pathname ? : UTEMPTER_DEFAULT_PATHNAME,
+		utempter_pathname ? utempter_pathname : UTEMPTER_DEFAULT_PATHNAME,
 		"add",
 		hostname,
-		0
+		NULL
 	};
 	int status = execute_helper(master_fd, args);
 
@@ -138,9 +138,9 @@ int
 utempter_remove_record(int master_fd)
 {
 	const char *const args[] = {
-		utempter_pathname ? : UTEMPTER_DEFAULT_PATHNAME,
+		utempter_pathname ? utempter_pathname : UTEMPTER_DEFAULT_PATHNAME,
 		"del",
-		0
+		NULL
 	};
 	int status = execute_helper(master_fd, args);
 
--- libutempter-1.2.1.orig/utempter.c
+++ libutempter-1.2.1/utempter.c
@@ -86,7 +86,7 @@ write_uwtmp_record(const char *user, con
 	memset(&ut, 0, sizeof(ut));
 
 	memset(&tv, 0, sizeof(tv));
-	(void) gettimeofday(&tv, 0);
+	(void) gettimeofday(&tv, NULL);
 
 	len = strlen(user);
 	memcpy(ut.ut_name, user, MIN(sizeof(ut.ut_name), len));
