Module Name:    src
Committed By:   kre
Date:           Thu Feb  6 23:01:58 UTC 2025

Modified Files:
        src/external/bsd/blocklist/bin: conf.c

Log Message:
Appease gcc, use explicit cast to convert long to size_t
Should fix ILP32 builds.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/blocklist/bin/conf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/blocklist/bin/conf.c
diff -u src/external/bsd/blocklist/bin/conf.c:1.8 src/external/bsd/blocklist/bin/conf.c:1.9
--- src/external/bsd/blocklist/bin/conf.c:1.8	Thu Feb  6 19:16:03 2025
+++ src/external/bsd/blocklist/bin/conf.c	Thu Feb  6 23:01:57 2025
@@ -1,4 +1,4 @@
-/*	$NetBSD: conf.c,v 1.8 2025/02/06 19:16:03 christos Exp $	*/
+/*	$NetBSD: conf.c,v 1.9 2025/02/06 23:01:57 kre Exp $	*/
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: conf.c,v 1.8 2025/02/06 19:16:03 christos Exp $");
+__RCSID("$NetBSD: conf.c,v 1.9 2025/02/06 23:01:57 kre Exp $");
 
 #include <stdio.h>
 #ifdef HAVE_LIBUTIL_H
@@ -1290,7 +1290,7 @@ conf_parsedir(DIR *dir, const char *conf
 		    strcmp(dent->d_name, "..") == 0)
 			continue;
 
-		(void) snprintf(path, path_max, "%s/%s", config_path,
+		(void) snprintf(path, (size_t)path_max, "%s/%s", config_path,
 		    dent->d_name);
 		if ((fp = fopen(path, "r")) == NULL) {
 			(*lfun)(LOG_ERR, "%s: Cannot open `%s' (%m)", __func__,

Reply via email to