fix redundant time import with different signature (#5715)

This commit is contained in:
Jacek Sieka
2017-04-17 04:50:10 +08:00
committed by Andreas Rumpf
parent 759a586b19
commit 99d20f6112

View File

@@ -69,10 +69,9 @@ var
proc genOid*(): Oid =
## generates a new OID.
proc rand(): cint {.importc: "rand", header: "<stdlib.h>", nodecl.}
proc gettime(dummy: ptr cint): cint {.importc: "time", header: "<time.h>".}
proc srand(seed: cint) {.importc: "srand", header: "<stdlib.h>", nodecl.}
var t = gettime(nil)
var t = getTime().int32
var i = int32(atomicInc(incr))