summaryrefslogtreecommitdiffstats
path: root/common/misc.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:38 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:38 +0200
commit5c1f0869414930fdebc35755217ead72d39879ec (patch)
tree0f6a0562e0ddadd2272204c87548213c1bc45969 /common/misc.c
parent73384c97b1bc8f67be32458b069f04b63ced81c9 (diff)
downloadbarebox-5c1f0869414930fdebc35755217ead72d39879ec.tar.gz
svn_rev_267
Diffstat (limited to 'common/misc.c')
-rw-r--r--common/misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/misc.c b/common/misc.c
index 977373a..5cab043 100644
--- a/common/misc.c
+++ b/common/misc.c
@@ -32,7 +32,9 @@ void *sbrk (ptrdiff_t increment)
return ((void *) old);
}
-void perror(char *s, int errno)
+int errno;
+
+void perror(char *s)
{
char *str;
switch(-errno) {