No need for cstring/cint conversions.
FossilOrigin-Name: e9d66d2bba3d5b5abb88679e95b23c3fa86b36e6ef6b02230c7a61c265da88f8
This commit is contained in:
parent
5775e5f438
commit
a7e4efcce9
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ proc newMessage*( dir: Maildir ): Message =
|
||||||
|
|
||||||
let now = getTime()
|
let now = getTime()
|
||||||
var hostname = newString(256)
|
var hostname = newString(256)
|
||||||
discard getHostname( cstring(hostname), cint(256) )
|
discard getHostname( hostname, 256 )
|
||||||
hostname.setLen( cstring(hostname).len )
|
hostname.setLen( cstring(hostname).len )
|
||||||
|
|
||||||
msgcount = msgcount + 1
|
msgcount = msgcount + 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue