Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/raidctl Avoid needless pointer calisthenics: &foo[0] ->...
details: https://anonhg.NetBSD.org/src/rev/44d815847d4f
branches: trunk
changeset: 357693:44d815847d4f
user: christos <christos%NetBSD.org@localhost>
date: Tue Nov 21 16:31:37 2017 +0000
description:
Avoid needless pointer calisthenics: &foo[0] -> foo
diffstat:
sbin/raidctl/rf_configure.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r ee9cdff6645f -r 44d815847d4f sbin/raidctl/rf_configure.c
--- a/sbin/raidctl/rf_configure.c Tue Nov 21 16:19:31 2017 +0000
+++ b/sbin/raidctl/rf_configure.c Tue Nov 21 16:31:37 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_configure.c,v 1.30 2017/11/21 16:19:31 kre Exp $ */
+/* $NetBSD: rf_configure.c,v 1.31 2017/11/21 16:31:37 christos Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
@@ -49,7 +49,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rf_configure.c,v 1.30 2017/11/21 16:19:31 kre Exp $");
+__RCSID("$NetBSD: rf_configure.c,v 1.31 2017/11/21 16:31:37 christos Exp $");
#endif
@@ -190,7 +190,7 @@
cp = rf_find_non_white(buf, 0);
if (!strncmp(cp, "START", sizeof("START") - 1))
break;
- (void) strlcpy(&cfgPtr->debugVars[c][0], cp,
+ (void) strlcpy(cfgPtr->debugVars[c], cp,
sizeof(cfgPtr->debugVars[c]));
}
}
@@ -257,7 +257,7 @@
b = buf;
}
- strlcpy(&cfgPtr->devnames[r][c][0], b,
+ strlcpy(cfgPtr->devnames[r][c], b,
sizeof(cfgPtr->devnames[r][c]));
}
}
@@ -284,7 +284,7 @@
b = buf;
}
- strlcpy(&cfgPtr->spare_names[r][0], b,
+ strlcpy(cfgPtr->spare_names[r], b,
sizeof(cfgPtr->spare_names[r]));
}
Home |
Main Index |
Thread Index |
Old Index