From a50890b1a4f790aaa3c5f84607c3a98ef48f5ceb Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Mon, 16 Aug 2004 16:59:43 +0000 Subject: [PATCH] Added missing function prototypes. Added const-ness. Fixed an "empty-then-clause" bug. --- vfs/smbfs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vfs/smbfs.c b/vfs/smbfs.c index fdc7efb9e..0f07209e5 100644 --- a/vfs/smbfs.c +++ b/vfs/smbfs.c @@ -108,7 +108,7 @@ smbfs_auth_free (struct smb_authinfo const *a) } static void -smbfs_auth_free_all () +smbfs_auth_free_all (void) { if (auth_list) { g_slist_foreach (auth_list, (GFunc)smbfs_auth_free, 0); @@ -1002,7 +1002,7 @@ smbfs_free_bucket (smbfs_connection *bucket) } static smbfs_connection * -smbfs_get_free_bucket () +smbfs_get_free_bucket (void) { int i; @@ -1214,14 +1214,14 @@ static int smbfs_fake_server_stat (const char *server_url, const char *path, struct stat *buf) { dir_entry *dentry; - char *p; + const char *p; if ((p = strrchr (path, '/'))) path = p + 1; /* advance until last '/' */ if (!current_info->entries) { - if (!smbfs_loaddir (current_info)); /* browse host */ - return -1; + if (!smbfs_loaddir (current_info)) /* browse host */ + return -1; } if (current_info->server_list == True) {