summaryrefslogtreecommitdiff
path: root/storage/connect/inihandl.c
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-05-13 14:59:59 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-05-13 14:59:59 +0400
commitd22b1a0b35e794212c92e65f1d7f7d3e108cceef (patch)
treebc3d9724bd32dfa0276a807b124dcbe0e65384fc /storage/connect/inihandl.c
parent3c76e0e2ad05229ea1718b6e9c3dce85d75aaa4d (diff)
downloadmariadb-git-d22b1a0b35e794212c92e65f1d7f7d3e108cceef.tar.gz
Fixing a few compilation warnings ("no previous declaration for XXX")
added: storage/connect/inihandl.h modified: storage/connect/CMakeLists.txt storage/connect/connect.h storage/connect/ha_connect.cc storage/connect/inihandl.c storage/connect/osutil.h storage/connect/tabsys.cpp storage/connect/user_connect.cc
Diffstat (limited to 'storage/connect/inihandl.c')
-rw-r--r--storage/connect/inihandl.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/storage/connect/inihandl.c b/storage/connect/inihandl.c
index 25629b04e60..60b72bd2604 100644
--- a/storage/connect/inihandl.c
+++ b/storage/connect/inihandl.c
@@ -29,9 +29,8 @@
//#include <sys/types.h>
//#include <memory.h>
#include "my_global.h"
-//#include "osutil.h"
#include "global.h"
-
+#include "inihandl.h"
// The types and variables used locally
//typedef int bool;
@@ -672,7 +671,7 @@ static BOOL PROFILE_DeleteKey(PROFILESECTION* *section,
*
* Delete all keys from a profile tree.
***********************************************************************/
-void PROFILE_DeleteAllKeys(LPCSTR section_name)
+static void PROFILE_DeleteAllKeys(LPCSTR section_name)
{
PROFILESECTION* *section= &CurProfile->section;
@@ -1038,6 +1037,7 @@ static BOOL PROFILE_SetString(LPCSTR section_name, LPCSTR key_name,
* Convenience function that turns a string 'xxx, yyy, zzz' into
* the 'xxx\0 yyy, zzz' and returns a pointer to the 'yyy, zzz'.
***********************************************************************/
+#if 0
char *PROFILE_GetStringItem(char* start)
{
char *lpchX, *lpch;
@@ -1065,6 +1065,7 @@ char *PROFILE_GetStringItem(char* start)
return NULL;
} // end of PROFILE_GetStringItem
+#endif
/**********************************************************************
* if allow_section_name_copy is TRUE, allow the copying :
@@ -1132,7 +1133,7 @@ static int PROFILE_GetPrivateProfileString(LPCSTR section, LPCSTR entry,
* GetPrivateProfileStringA (KERNEL32.@)
***********************************************************************/
int GetPrivateProfileString(LPCSTR section, LPCSTR entry, LPCSTR def_val,
- LPSTR buffer, uint len, LPCSTR filename)
+ LPSTR buffer, DWORD len, LPCSTR filename)
{
return PROFILE_GetPrivateProfileString(section, entry, def_val,
buffer, len, filename, TRUE);
@@ -1308,7 +1309,8 @@ BOOL WritePrivateProfileSection(LPCSTR section,
* Note that when the buffer is big enough then the return value may be any
* value between 1 and len-1 (or len in Win95), including len-2.
*/
-DWORD GetPrivateProfileSectionNames(LPSTR buffer, DWORD size, LPCSTR filename)
+static DWORD
+GetPrivateProfileSectionNames(LPSTR buffer, DWORD size, LPCSTR filename)
{
DWORD ret = 0;