diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-09-23 17:39:14 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-09-23 17:39:14 +0000 |
commit | 4bfc084c4974ecff94e273a7608ebc38f1c046ab (patch) | |
tree | c22cc0f88365f625da447e3609cc1951fb7590eb /code/unix/unix_shared.c | |
parent | 4b080c5906fdb1f7ee4e7fe5fdf2375dfcdf5ff4 (diff) | |
download | ioquake3-aero-4bfc084c4974ecff94e273a7608ebc38f1c046ab.tar.gz ioquake3-aero-4bfc084c4974ecff94e273a7608ebc38f1c046ab.zip |
* Applied ajax's cleanup patch
git-svn-id: svn://svn.icculus.org/quake3/trunk@101 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix/unix_shared.c')
-rw-r--r-- | code/unix/unix_shared.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/code/unix/unix_shared.c b/code/unix/unix_shared.c index beb69c4..e3d0dad 100644 --- a/code/unix/unix_shared.c +++ b/code/unix/unix_shared.c @@ -253,7 +253,7 @@ char **Sys_ListFiles( const char *directory, const char *extension, char *filter nfiles = 0; Sys_ListFilteredFiles( directory, "", filter, list, &nfiles ); - list[ nfiles ] = 0; + list[ nfiles ] = NULL; *numfiles = nfiles; if (!nfiles) @@ -309,7 +309,7 @@ char **Sys_ListFiles( const char *directory, const char *extension, char *filter nfiles++; } - list[ nfiles ] = 0; + list[ nfiles ] = NULL; closedir(fdir); @@ -428,7 +428,7 @@ char *Sys_GetCurrentUser( void ) #if defined(__linux__) // TTimo // sysconf() in libc, POSIX.1 compliant -unsigned int Sys_ProcessorCount() +unsigned int Sys_ProcessorCount(void) { return sysconf(_SC_NPROCESSORS_ONLN); } |