From 1fc7d6a0c514257cee9fb204cb83564b17354c11 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Tue, 8 Apr 2014 07:01:44 -0300 Subject: Fix/add more files with to clint-files.txt --- src/os/env.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/os/env.c') diff --git a/src/os/env.c b/src/os/env.c index a3053e3350..6d3e8bd683 100644 --- a/src/os/env.c +++ b/src/os/env.c @@ -55,12 +55,12 @@ char *os_getenvname_at_index(size_t index) } -long os_get_pid() +int64_t os_get_pid() { #ifdef _WIN32 - return (long)GetCurrentProcessId(); + return (int64_t)GetCurrentProcessId(); #else - return (long)getpid(); + return (int64_t)getpid(); #endif } @@ -76,7 +76,8 @@ void os_get_hostname(char *hostname, size_t len) hostname[len - 1] = '\0'; } #else - // TODO: Implement this for windows. See the implementation used in vim: + // TODO(unknown): Implement this for windows. + // See the implementation used in vim: // https://code.google.com/p/vim/source/browse/src/os_win32.c?r=6b69d8dde19e32909f4ee3a6337e6a2ecfbb6f72#2899 *hostname = '\0'; #endif -- cgit