summaryrefslogtreecommitdiff
path: root/missing/strerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'missing/strerror.c')
-rw-r--r--missing/strerror.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/missing/strerror.c b/missing/strerror.c
index 44013b3..c1bf6fe 100644
--- a/missing/strerror.c
+++ b/missing/strerror.c
@@ -1,6 +1,4 @@
-/*
- * strerror.c --- Map an integer error number into a printable string.
- */
+/* public domain rewrite of strerror(3) */
extern int sys_nerr;
extern char *sys_errlist[];
@@ -11,9 +9,9 @@ char *
strerror(error)
int error;
{
- if ((error <= sys_nerr) && (error > 0)) {
+ if (error <= sys_nerr && error > 0) {
return sys_errlist[error];
}
- sprintf (msg, "Unknown error (%d)", error);
+ sprintf(msg, "Unknown error (%d)", error);
return msg;
}