summaryrefslogtreecommitdiff
path: root/sys/src/9
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-03-10 03:28:36 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-03-10 03:28:36 +0100
commit28bd8adce7264b6f35016fca839391981b404428 (patch)
treedfaaac0d23a6dd0bb0583486b904856efc1183c9 /sys/src/9
parent595501b005f591527680080e606c9ab0f1d99701 (diff)
devcons: nil vs 0
Diffstat (limited to 'sys/src/9')
-rw-r--r--sys/src/9/port/devcons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/port/devcons.c b/sys/src/9/port/devcons.c
index da1e9fcd4..039108540 100644
--- a/sys/src/9/port/devcons.c
+++ b/sys/src/9/port/devcons.c
@@ -150,7 +150,7 @@ putstrn0(char *str, int n, int usewrite)
while(n > 0) {
t = memchr(str, '\n', n);
- if(t) {
+ if(t != nil) {
m = t-str;
if(usewrite){
qwrite(serialoq, str, m);
@@ -302,7 +302,7 @@ pprint(char *fmt, ...)
return 0;
c = up->fgrp->fd[2];
- if(c==0 || (c->mode!=OWRITE && c->mode!=ORDWR))
+ if(c==nil || (c->mode!=OWRITE && c->mode!=ORDWR))
return 0;
n = snprint(buf, sizeof buf, "%s %lud: ", up->text, up->pid);
va_start(arg, fmt);