diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-10-12 21:04:24 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-10-12 21:04:24 +0000 |
commit | 81da727bd14731e4d3df1ccd4f39fcae73994ae7 (patch) | |
tree | 305c018b54e8d43330346a9488e57229a2eefde4 /sys/arch/i386 | |
parent | 345757705da17aafac67f3c66fb9ea2ff7eb60e8 (diff) |
KNF
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/stand/libsa/time.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/sys/arch/i386/stand/libsa/time.c b/sys/arch/i386/stand/libsa/time.c index 076f4351229..b5d1c49b020 100644 --- a/sys/arch/i386/stand/libsa/time.c +++ b/sys/arch/i386/stand/libsa/time.c @@ -1,4 +1,4 @@ -/* $OpenBSD: time.c,v 1.9 1997/09/02 20:51:21 mickey Exp $ */ +/* $OpenBSD: time.c,v 1.10 1997/10/12 21:04:23 mickey Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -45,7 +45,9 @@ * Convert from bcd (packed) to int */ static __inline u_int8_t -bcdtoint(register u_int8_t c) { +bcdtoint(c) + register u_int8_t c; +{ return ((c & 0xf0) / 8) * 5 + (c & 0x0f); } @@ -80,7 +82,9 @@ compute(year, month, day, hour, min, sec) } static int -bios_time_date(int f, register u_int8_t *b) +bios_time_date(f, b) + int f; + register u_int8_t *b; { __asm __volatile(DOINT(0x1a) "\n\t" "setc %b0\n\t" @@ -102,13 +106,15 @@ bios_time_date(int f, register u_int8_t *b) } static __inline int -biosdate(register u_int8_t *b) +biosdate(b) + register u_int8_t *b; { return bios_time_date(4 << 8, b); } static __inline int -biostime(register u_int8_t *b) +biostime(b) + register u_int8_t *b; { return bios_time_date(2 << 8, b); } |