Module Name: src
Committed By: rillig
Date: Fri Oct 4 15:11:09 UTC 2024
Modified Files:
src/usr.sbin/sysinst: disklabel.c run.c
Log Message:
sysinst: fix lint warning about "effectively discards 'const'"
No binary change except for assertion line numbers.
To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/usr.sbin/sysinst/disklabel.c
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/sysinst/run.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/sysinst/disklabel.c
diff -u src/usr.sbin/sysinst/disklabel.c:1.52 src/usr.sbin/sysinst/disklabel.c:1.53
--- src/usr.sbin/sysinst/disklabel.c:1.52 Thu Feb 8 20:51:24 2024
+++ src/usr.sbin/sysinst/disklabel.c Fri Oct 4 15:11:09 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: disklabel.c,v 1.52 2024/02/08 20:51:24 andvar Exp $ */
+/* $NetBSD: disklabel.c,v 1.53 2024/10/04 15:11:09 rillig Exp $ */
/*
* Copyright 2018 The NetBSD Foundation, Inc.
@@ -1278,7 +1278,8 @@ disklabel_find_by_name(struct disk_parti
{
const struct disklabel_disk_partitions *parts =
(const struct disklabel_disk_partitions*)arg;
- char *sl, part;
+ const char *sl;
+ char part;
ptrdiff_t n;
part_id pno, id, i;
Index: src/usr.sbin/sysinst/run.c
diff -u src/usr.sbin/sysinst/run.c:1.15 src/usr.sbin/sysinst/run.c:1.16
--- src/usr.sbin/sysinst/run.c:1.15 Thu Apr 21 17:30:15 2022
+++ src/usr.sbin/sysinst/run.c Fri Oct 4 15:11:09 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: run.c,v 1.15 2022/04/21 17:30:15 martin Exp $ */
+/* $NetBSD: run.c,v 1.16 2024/10/04 15:11:09 rillig Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -284,12 +284,11 @@ do_system(const char *execstr)
}
static char **
-make_argv(const char *cmd)
+make_argv(char *cmd)
{
char **argv = 0;
int argc = 0;
- const char *cp;
- char *dp, *fn;
+ char *cp, *dp, *fn;
DIR *dir;
struct dirent *dirent;
int l;