diff options
author | yar <yar@FreeBSD.org> | 2006-11-27 16:59:08 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2006-11-27 16:59:08 +0000 |
commit | a3471d7b5c9f1ab3bc0cdb10fa8c6be6bbfb763e (patch) | |
tree | f29e3689c4048b6e7f3124570fd24107e4caaf32 /usr.bin | |
parent | eeb150355b9cdf227096ba44cee01fb35c24b109 (diff) | |
download | FreeBSD-src-a3471d7b5c9f1ab3bc0cdb10fa8c6be6bbfb763e.zip FreeBSD-src-a3471d7b5c9f1ab3bc0cdb10fa8c6be6bbfb763e.tar.gz |
Remove a wrong "const" qualifier.
Spotted by: WARNS=6
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/systat/ifstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/systat/ifstat.c b/usr.bin/systat/ifstat.c index 0c05387..27bf9ec 100644 --- a/usr.bin/systat/ifstat.c +++ b/usr.bin/systat/ifstat.c @@ -78,7 +78,7 @@ struct if_stat { extern u_int curscale; -static void right_align_string(const struct if_stat *); +static void right_align_string(struct if_stat *); static void getifmibdata(const int, struct ifmibdata *); static void sort_interface_list(void); static u_int getifnum(void); @@ -306,7 +306,7 @@ fetchifstat(void) * (first sixteen or so characters), so we need to do some alignment. */ static void -right_align_string(const struct if_stat *ifp) +right_align_string(struct if_stat *ifp) { int str_len = 0, pad_len = 0; char *newstr = NULL, *ptr = NULL; @@ -318,7 +318,7 @@ right_align_string(const struct if_stat *ifp) str_len = strlen(ifp->if_mib.ifmd_name)+1; pad_len = IF_NAMESIZE-(str_len); - newstr = (char *)ifp->if_name; + newstr = ifp->if_name; ptr = newstr + pad_len; (void)memset((void *)newstr, (int)' ', IF_NAMESIZE); (void)strncpy(ptr, (const char *)&ifp->if_mib.ifmd_name, |