diff options
author | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2016-08-14 06:29:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-14 06:29:20 -0700 |
commit | 6e4ca31aa5febcc546ec3b32a09793085ea114f0 (patch) | |
tree | c4c745f17954aa1f54dd8b6ec28e40e6d124b648 /src/print_eth_info.c | |
parent | 712c5b0f0b64b62b7c0395acd6b295361f741735 (diff) | |
parent | eb0b6412af16fe00ce38faa31bd50c238f4e7098 (diff) |
Merge pull request #149 from tommie/incremental_multibatt
Fix some compilation warnings on OpenBSD and NetBSD
Diffstat (limited to 'src/print_eth_info.c')
-rw-r--r-- | src/print_eth_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_eth_info.c b/src/print_eth_info.c index 34ffa36..e4bf15e 100644 --- a/src/print_eth_info.c +++ b/src/print_eth_info.c @@ -79,7 +79,7 @@ static int print_eth_speed(char *outwalk, const char *interface) { ethspeed = (desc->ifmt_string != NULL ? desc->ifmt_string : "?"); return sprintf(outwalk, "%s", ethspeed); #elif defined(__OpenBSD__) || defined(__NetBSD__) - char *ethspeed; + const char *ethspeed; struct ifmediareq ifmr; (void)memset(&ifmr, 0, sizeof(ifmr)); |