mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
removed unused return value
This commit is contained in:
parent
9efa13c036
commit
de73018730
|
@ -1412,7 +1412,7 @@ int net_init()
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int fs_listdir(const char *dir, FS_LISTDIR_CALLBACK cb, int type, void *user)
|
void fs_listdir(const char *dir, FS_LISTDIR_CALLBACK cb, int type, void *user)
|
||||||
{
|
{
|
||||||
#if defined(CONF_FAMILY_WINDOWS)
|
#if defined(CONF_FAMILY_WINDOWS)
|
||||||
WIN32_FIND_DATA finddata;
|
WIN32_FIND_DATA finddata;
|
||||||
|
@ -1424,7 +1424,7 @@ int fs_listdir(const char *dir, FS_LISTDIR_CALLBACK cb, int type, void *user)
|
||||||
handle = FindFirstFileA(buffer, &finddata);
|
handle = FindFirstFileA(buffer, &finddata);
|
||||||
|
|
||||||
if (handle == INVALID_HANDLE_VALUE)
|
if (handle == INVALID_HANDLE_VALUE)
|
||||||
return 0;
|
return;
|
||||||
|
|
||||||
str_format(buffer, sizeof(buffer), "%s/", dir);
|
str_format(buffer, sizeof(buffer), "%s/", dir);
|
||||||
length = str_length(buffer);
|
length = str_length(buffer);
|
||||||
|
@ -1439,7 +1439,7 @@ int fs_listdir(const char *dir, FS_LISTDIR_CALLBACK cb, int type, void *user)
|
||||||
while (FindNextFileA(handle, &finddata));
|
while (FindNextFileA(handle, &finddata));
|
||||||
|
|
||||||
FindClose(handle);
|
FindClose(handle);
|
||||||
return 0;
|
return;
|
||||||
#else
|
#else
|
||||||
struct dirent *entry;
|
struct dirent *entry;
|
||||||
char buffer[1024*2];
|
char buffer[1024*2];
|
||||||
|
@ -1447,7 +1447,7 @@ int fs_listdir(const char *dir, FS_LISTDIR_CALLBACK cb, int type, void *user)
|
||||||
DIR *d = opendir(dir);
|
DIR *d = opendir(dir);
|
||||||
|
|
||||||
if(!d)
|
if(!d)
|
||||||
return 0;
|
return;
|
||||||
|
|
||||||
str_format(buffer, sizeof(buffer), "%s/", dir);
|
str_format(buffer, sizeof(buffer), "%s/", dir);
|
||||||
length = str_length(buffer);
|
length = str_length(buffer);
|
||||||
|
@ -1461,7 +1461,7 @@ int fs_listdir(const char *dir, FS_LISTDIR_CALLBACK cb, int type, void *user)
|
||||||
|
|
||||||
/* close the directory and return */
|
/* close the directory and return */
|
||||||
closedir(d);
|
closedir(d);
|
||||||
return 0;
|
return;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1138,12 +1138,9 @@ void str_timestamp(char *buffer, int buffer_size);
|
||||||
cb - Callback function to call for each entry
|
cb - Callback function to call for each entry
|
||||||
type - Type of the directory
|
type - Type of the directory
|
||||||
user - Pointer to give to the callback
|
user - Pointer to give to the callback
|
||||||
|
|
||||||
Returns:
|
|
||||||
Always returns 0.
|
|
||||||
*/
|
*/
|
||||||
typedef int (*FS_LISTDIR_CALLBACK)(const char *name, int is_dir, int dir_type, void *user);
|
typedef int (*FS_LISTDIR_CALLBACK)(const char *name, int is_dir, int dir_type, void *user);
|
||||||
int fs_listdir(const char *dir, FS_LISTDIR_CALLBACK cb, int type, void *user);
|
void fs_listdir(const char *dir, FS_LISTDIR_CALLBACK cb, int type, void *user);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Function: fs_makedir
|
Function: fs_makedir
|
||||||
|
|
Loading…
Reference in a new issue