summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/ip/ipaux.c1
-rw-r--r--os/ipaq1110/archipaq.c2
-rw-r--r--os/sa1110/devuart.c3
3 files changed, 5 insertions, 1 deletions
diff --git a/os/ip/ipaux.c b/os/ip/ipaux.c
index 2ddae041..f4637bd4 100644
--- a/os/ip/ipaux.c
+++ b/os/ip/ipaux.c
@@ -283,7 +283,6 @@ eipfmt(Fmt *f)
case 'E': /* Ethernet address */
p = va_arg(f->args, uchar*);
return fmtprint(f, efmt, p[0], p[1], p[2], p[3], p[4], p[5]);
- return fmtstrcpy(f, buf);
case 'I': /* Ip address */
p = va_arg(f->args, uchar*);
diff --git a/os/ipaq1110/archipaq.c b/os/ipaq1110/archipaq.c
index 0e3c726b..7d99b70c 100644
--- a/os/ipaq1110/archipaq.c
+++ b/os/ipaq1110/archipaq.c
@@ -343,6 +343,8 @@ pcmpin(int slot, int type)
return slot==0? 17: 10;
case PCMstschng:
return -1;
+ default:
+ return -1;
}
}
diff --git a/os/sa1110/devuart.c b/os/sa1110/devuart.c
index 65eb17a3..4df51960 100644
--- a/os/sa1110/devuart.c
+++ b/os/sa1110/devuart.c
@@ -656,6 +656,9 @@ uartwrite(Chan *c, void *buf, long n, vlong offset)
cmd[n] = 0;
uartctl(p, cmd);
return n;
+ default:
+ error(Egreg);
+ return 0;
}
}