aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9p.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-08-11 17:33:43 +0000
committerrsc <devnull@localhost>2005-08-11 17:33:43 +0000
commitbcac59d81b63c352a9073104e7e63838e117a877 (patch)
treef8a3ffb635c9d2209d42baf19c85c73eaa2d90db /src/cmd/9p.c
parent01d1f4cb4b791eca0bc79bc00188bf3c688290e6 (diff)
downloadplan9port-bcac59d81b63c352a9073104e7e63838e117a877.tar.gz
plan9port-bcac59d81b63c352a9073104e7e63838e117a877.tar.bz2
plan9port-bcac59d81b63c352a9073104e7e63838e117a877.zip
silence various warnings
Diffstat (limited to 'src/cmd/9p.c')
-rw-r--r--src/cmd/9p.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd/9p.c b/src/cmd/9p.c
index bace6d09..99033bc8 100644
--- a/src/cmd/9p.c
+++ b/src/cmd/9p.c
@@ -336,10 +336,8 @@ timefmt(Fmt *fmt)
if((long)(time0-u) < 6*30*86400)
return fmtprint(fmt, "%s %2d %02d:%02d",
mon[tm->mon], tm->mday, tm->hour, tm->min);
- else
- return fmtprint(fmt, "%s %2d %5d",
- mon[tm->mon], tm->mday, tm->year+1900);
- return 0;
+ return fmtprint(fmt, "%s %2d %5d",
+ mon[tm->mon], tm->mday, tm->year+1900);
}
static int