summaryrefslogtreecommitdiffstats
path: root/call/dostime.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-01-31 11:32:49 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-01-31 11:32:49 +0100
commit1de0ea4abd7153c6fcdbdbac6048a1e46f673fc2 (patch)
treec81a8d6c58fcee19cead9cce8122ec35342428b1 /call/dostime.c
parentaa1bfde879f3c5885199d7bb4720efaabff67d8c (diff)
Sort out variable and function declarations.
- Make static what can be made static. - Add declaration where they were missing. - Don't define variables in headers. - Move declaations to the proper locations. - Pick up declarations from the proper headers. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'call/dostime.c')
-rw-r--r--call/dostime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/call/dostime.c b/call/dostime.c
index 4eb34c9..6e6e173 100644
--- a/call/dostime.c
+++ b/call/dostime.c
@@ -3,6 +3,8 @@
#include <stdlib.h>
#include <stdio.h>
+#include "call.h"
+
/* MS-DOS time/date conversion routines derived from: */
@@ -21,7 +23,7 @@ static int day_n[] =
/* Convert a MS-DOS time/date pair to a UNIX date (seconds since 1 1 70). */
-int date_dos2unix(unsigned short time, unsigned short date)
+static int date_dos2unix(unsigned short time, unsigned short date)
{
int month, year, secs;