summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2007-10-03 16:43:22 -0400
committerJohn (J5) Palmieri <johnp@redhat.com>2007-10-03 16:43:22 -0400
commit7d9d3fc031244bee29b5ac25e07f3e8e5b5dd97b (patch)
treeb207a80d10c5fae93ef3fe2ea562f32a6e52c6dc /tools
parent8a92100bbed2ba5cb16a1ede36214fa7d2f43e43 (diff)
fd.o bug #12547 remove superfluous if
* also convert tabs to spaces
Diffstat (limited to 'tools')
-rw-r--r--tools/dbus-launch.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c
index 11b6e6a4..80d885f4 100644
--- a/tools/dbus-launch.c
+++ b/tools/dbus-launch.c
@@ -324,17 +324,16 @@ print_variables (const char *bus_address, pid_t bus_pid, long bus_wid,
printf ("setenv DBUS_SESSION_BUS_ADDRESS '%s';\n", bus_address);
printf ("set DBUS_SESSION_BUS_PID=%ld;\n", (long) bus_pid);
if (bus_wid)
- printf ("set DBUS_SESSION_BUS_WINDOWID=%ld;\n", (long) bus_wid);
+ printf ("set DBUS_SESSION_BUS_WINDOWID=%ld;\n", (long) bus_wid);
fflush (stdout);
}
else if (bourne_shell_syntax)
{
printf ("DBUS_SESSION_BUS_ADDRESS='%s';\n", bus_address);
- if (bourne_shell_syntax)
- printf ("export DBUS_SESSION_BUS_ADDRESS;\n");
+ printf ("export DBUS_SESSION_BUS_ADDRESS;\n");
printf ("DBUS_SESSION_BUS_PID=%ld;\n", (long) bus_pid);
if (bus_wid)
- printf ("DBUS_SESSION_BUS_WINDOWID=%ld;\n", (long) bus_wid);
+ printf ("DBUS_SESSION_BUS_WINDOWID=%ld;\n", (long) bus_wid);
fflush (stdout);
}
else