summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/ether-wake.c3
-rw-r--r--networking/ping.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/networking/ether-wake.c b/networking/ether-wake.c
index 7e3ef49..f923149 100644
--- a/networking/ether-wake.c
+++ b/networking/ether-wake.c
@@ -107,7 +107,8 @@ static inline int get_wol_pw(const char *ethoptarg, unsigned char *wol_passwd);
int ether_wake_main(int argc, char *argv[])
{
- char *ifname = "eth0", *pass = NULL;
+ const char *ifname = "eth0";
+ char *pass = NULL;
unsigned long flags;
unsigned char wol_passwd[6];
int wol_passwd_sz = 0;
diff --git a/networking/ping.c b/networking/ping.c
index 53aabb6..ba4f585 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -190,7 +190,7 @@ int ping_main(int argc, char **argv)
len_and_sockaddr *lsa;
#if ENABLE_PING6
sa_family_t af = AF_UNSPEC;
- while (++argv[0][0]) == '-') {
+ while (++argv[0][0] == '-') {
if (argv[0][1] == '4') {
af = AF_INET;
continue;