summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornpmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56>2009-06-04 15:19:17 +0000
committernpmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56>2009-06-04 15:19:17 +0000
commitd5b44444c2963773b9a3af99a1a283e7206e2c97 (patch)
treecfe6b3bad502ce7142de183ad92759722d793983 /src
parent601e247325126be839b9d60d616a1cc303fca26f (diff)
downloadlibproxy-git-d5b44444c2963773b9a3af99a1a283e7206e2c97.tar.gz
turn on -pedantic, turn off -Werror, fix some pedantic warnings
Diffstat (limited to 'src')
-rw-r--r--src/lib/config_file.c2
-rw-r--r--src/lib/module_manager.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/config_file.c b/src/lib/config_file.c
index 0c25fc6..063844d 100644
--- a/src/lib/config_file.c
+++ b/src/lib/config_file.c
@@ -46,7 +46,7 @@ px_config_file_new(char *filename)
pxConfigFile *self = px_malloc0(sizeof(pxConfigFile));
self->filename = px_strdup(filename);
self->mtime = st.st_mtime;
- self->sections = px_strdict_new((void *) px_strdict_free);
+ self->sections = px_strdict_new((pxStrDictItemCallback) px_strdict_free);
/* Add one section (PX_CONFIG_FILE_DEFAULT_SECTION) */
px_strdict_set(self->sections, PX_CONFIG_FILE_DEFAULT_SECTION, px_strdict_new(free));
diff --git a/src/lib/module_manager.c b/src/lib/module_manager.c
index 3c9805f..df932a2 100644
--- a/src/lib/module_manager.c
+++ b/src/lib/module_manager.c
@@ -67,8 +67,8 @@ pxModuleManager *
px_module_manager_new()
{
pxModuleManager *self = px_malloc0(sizeof(pxModuleManager));
- self->dlmodules = px_array_new(NULL, (void *) pdlclose, true, false);
- self->registrations = px_strdict_new((void *) px_array_free);
+ self->dlmodules = px_array_new(NULL, (pxArrayItemCallback) pdlclose, true, false);
+ self->registrations = px_strdict_new((pxStrDictItemCallback) px_array_free);
self->types = px_strdict_new(NULL);
return self;
}
@@ -151,7 +151,7 @@ _px_module_manager_register_module_full(pxModuleManager *self,
// Create a new empty array if there is no registrations for this id
if (!px_strdict_get(self->registrations, id))
- px_strdict_set(self->registrations, id, px_array_new((void *) regeq, (void *) regfree, true, true));
+ px_strdict_set(self->registrations, id, px_array_new((pxArrayItemsEqual) regeq, (pxArrayItemCallback) regfree, true, true));
// Add the module to the registrations for this id
pxArray *registrations = (pxArray *) px_strdict_get(self->registrations, id);