summaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:31 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:31 -0800
commitae2b295c7deaf2d7c18ad1ed9b6050970e56bae7 (patch)
treeeee15e02ae016333546d3841712be591b2bcb06f /time.c
parent302e3218b7d487539ec305bf23881a6ee7d5be99 (diff)
downloadscm-ae2b295c7deaf2d7c18ad1ed9b6050970e56bae7.tar.gz
scm-ae2b295c7deaf2d7c18ad1ed9b6050970e56bae7.zip
Import Upstream version 5e2upstream/5e2
Diffstat (limited to 'time.c')
-rw-r--r--time.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/time.c b/time.c
index a57034a..abb5684 100644
--- a/time.c
+++ b/time.c
@@ -264,17 +264,17 @@ static long mytime()
long sec, mic, mili = 0;
struct timerequest *timermsg;
struct MsgPort *timerport;
- if(!(timerport = (struct MsgPort *)CreatePort(0, 0))){
+ if (!(timerport = (struct MsgPort *)CreatePort(0, 0))){
lputs("No mem for port.\n", cur_errp);
return mili;
}
- if(!(timermsg = (struct timerequest *)
+ if (!(timermsg = (struct timerequest *)
CreateExtIO(timerport, sizeof(struct timerequest)))){
lputs("No mem for timerequest.\n", cur_errp);
DeletePort(timermsg->tr_node.io_Message.mn_ReplyPort);
return mili;
}
- if(!(OpenDevice(TIMERNAME, UNIT_MICROHZ, timermsg, 0))){
+ if (!(OpenDevice(TIMERNAME, UNIT_MICROHZ, timermsg, 0))){
timermsg->tr_node.io_Command = TR_GETSYSTIME;
timermsg->tr_node.io_Flags = 0;
DoIO(timermsg);