diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:31 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:31 -0800 |
commit | ae2b295c7deaf2d7c18ad1ed9b6050970e56bae7 (patch) | |
tree | eee15e02ae016333546d3841712be591b2bcb06f /time.c | |
parent | 302e3218b7d487539ec305bf23881a6ee7d5be99 (diff) | |
download | scm-6376a6227f70e3a9cba3498b249604187e1e5546.tar.gz scm-6376a6227f70e3a9cba3498b249604187e1e5546.zip |
Import Upstream version 5e2upstream/5e2
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |