summaryrefslogtreecommitdiff
path: root/dbus
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-07-14 18:44:46 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-08-05 12:26:51 +0100
commit0c4a2087c6ae734405649793327f371771f990db (patch)
treebef7c31aea4c86500d135142649538d7117ad49d /dbus
parent565ae9dea907d2f8677f556bd29a0c3a52f9decc (diff)
downloaddbus-0c4a2087c6ae734405649793327f371771f990db.tar.gz
Remove various never-used variables
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39231 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
Diffstat (limited to 'dbus')
-rw-r--r--dbus/dbus-internals.c1
-rw-r--r--dbus/dbus-nonce.c2
-rw-r--r--dbus/dbus-server-socket.c2
-rw-r--r--dbus/dbus-sysdeps-util-unix.c1
4 files changed, 0 insertions, 6 deletions
diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c
index 95a491f9..fcea0790 100644
--- a/dbus/dbus-internals.c
+++ b/dbus/dbus-internals.c
@@ -347,7 +347,6 @@ _dbus_verbose_init (void)
static char *_dbus_file_path_extract_elements_from_tail(const char *file,int level)
{
static int prefix = -1;
- char *p;
if (prefix == -1)
{
diff --git a/dbus/dbus-nonce.c b/dbus/dbus-nonce.c
index d30b2535..e74c2dd5 100644
--- a/dbus/dbus-nonce.c
+++ b/dbus/dbus-nonce.c
@@ -196,7 +196,6 @@ _dbus_send_nonce (int fd, const DBusString *noncefile, DBusError *error)
{
dbus_bool_t read_result;
int send_result;
- size_t sendLen;
DBusString nonce;
_DBUS_ASSERT_ERROR_IS_CLEAR (error);
@@ -240,7 +239,6 @@ do_noncefile_create (DBusNonceFile *noncefile,
DBusError *error,
dbus_bool_t use_subdir)
{
- dbus_bool_t ret;
DBusString randomStr;
_DBUS_ASSERT_ERROR_IS_CLEAR (error);
diff --git a/dbus/dbus-server-socket.c b/dbus/dbus-server-socket.c
index 02973c19..8e31da9d 100644
--- a/dbus/dbus-server-socket.c
+++ b/dbus/dbus-server-socket.c
@@ -89,10 +89,8 @@ handle_new_client_fd_and_unlock (DBusServer *server,
DBusConnection *connection;
DBusTransport *transport;
DBusNewConnectionFunction new_connection_function;
- DBusServerSocket* socket_server;
void *new_connection_data;
- socket_server = (DBusServerSocket*)server;
_dbus_verbose ("Creating new client connection with fd %d\n", client_fd);
HAVE_LOCK_CHECK (server);
diff --git a/dbus/dbus-sysdeps-util-unix.c b/dbus/dbus-sysdeps-util-unix.c
index a80f6430..805c919d 100644
--- a/dbus/dbus-sysdeps-util-unix.c
+++ b/dbus/dbus-sysdeps-util-unix.c
@@ -389,7 +389,6 @@ _dbus_request_file_descriptor_limit (unsigned int limit)
#ifdef HAVE_SETRLIMIT
struct rlimit lim;
struct rlimit target_lim;
- unsigned int current_limit;
/* No point to doing this practically speaking
* if we're not uid 0. We expect the system