summaryrefslogtreecommitdiff
path: root/dbus/dbus-sysdeps-util-win.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2009-10-22 03:22:54 +0300
committerRalf Habacker <ralf.habacker@freenet.de>2009-12-01 10:27:54 +0100
commit459c19b9dd157cd360c3082d015a4c5ae4689cf8 (patch)
tree7fbece5bd1004fce173ae74cd8432c72396ef6f1 /dbus/dbus-sysdeps-util-win.c
parent2213a8511ac59abb88b8e803dbc8e53819924778 (diff)
downloaddbus-459c19b9dd157cd360c3082d015a4c5ae4689cf8.tar.gz
Avoid warnings on Windows
Remove unused functions, or put in #if 0 if potentially useful. Make internal functions used just in one file static. Use -Werror after all also on Windows. Construct the installation root from the location of the dbus DLL, not from the location of the program .exe of the process.
Diffstat (limited to 'dbus/dbus-sysdeps-util-win.c')
-rw-r--r--dbus/dbus-sysdeps-util-win.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/dbus/dbus-sysdeps-util-win.c b/dbus/dbus-sysdeps-util-win.c
index fe277e4a..81ce82df 100644
--- a/dbus/dbus-sysdeps-util-win.c
+++ b/dbus/dbus-sysdeps-util-win.c
@@ -70,7 +70,7 @@ _dbus_become_daemon (const DBusString *pidfile,
* @param error return location for errors
* @returns #FALSE on failure
*/
-dbus_bool_t
+static dbus_bool_t
_dbus_write_pid_file (const DBusString *filename,
unsigned long pid,
DBusError *error)
@@ -224,22 +224,6 @@ _dbus_change_to_daemon_user (const char *user,
return TRUE;
}
-/**
- * Changes the user and group the bus is running as.
- *
- * @param uid the new user ID
- * @param gid the new group ID
- * @param error return location for errors
- * @returns #FALSE on failure
- */
-dbus_bool_t
-_dbus_change_identity (dbus_uid_t uid,
- dbus_gid_t gid,
- DBusError *error)
-{
- return TRUE;
-}
-
/** Checks if user is at the console
*
* @param username user to check
@@ -542,7 +526,7 @@ DIR;
* The DIR typedef is not compatible with Unix.
**********************************************************************/
-DIR * _dbus_opendir(const char *dir)
+static DIR * _dbus_opendir(const char *dir)
{
DIR *dp;
char *filespec;
@@ -575,7 +559,7 @@ DIR * _dbus_opendir(const char *dir)
return dp;
}
-struct dirent * _dbus_readdir(DIR *dp)
+static struct dirent * _dbus_readdir(DIR *dp)
{
if (!dp || dp->finished)
return NULL;
@@ -600,7 +584,7 @@ struct dirent * _dbus_readdir(DIR *dp)
}
-int _dbus_closedir(DIR *dp)
+static int _dbus_closedir(DIR *dp)
{
if (!dp)
return 0;