summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2011-08-30 03:09:28 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-08-30 23:26:33 +0200
commite262931bb794267aa0f1a420c848767800bed7c3 (patch)
treeaf785d61f6ce3d85b4791bd492098cc12bee8aaa /i386
parent54771e827e3e2e228178f4c1286b6736181c23fa (diff)
Return a value on non-void function
* i386/i386at/com.c (comcnprobe, comcninit, comcnputc): Return 0.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386at/com.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/i386/i386at/com.c b/i386/i386at/com.c
index 3030270..4fed1ee 100644
--- a/i386/i386at/com.c
+++ b/i386/i386at/com.c
@@ -211,6 +211,8 @@ comcnprobe(struct consdev *cp)
cp->cn_dev = makedev(maj, unit);
cp->cn_pri = pri;
+
+ return 0;
}
@@ -283,6 +285,7 @@ comcninit(struct consdev *cp)
}
}
+ return 0;
}
/*
@@ -882,6 +885,8 @@ comcnputc(dev_t dev, int c)
if (c == '\n')
comcnputc(dev, '\r');
outb(addr, c);
+
+ return 0;
}
int