]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Don't use DBUS_DIR_SEPARATOR
authorTor Lillqvist <tml@iki.fi>
Wed, 21 Oct 2009 18:52:59 +0000 (21:52 +0300)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 1 Dec 2009 08:20:31 +0000 (09:20 +0100)
I didn't cherry-pick the commit from dbus4win that introduced
DBUS_DIR_SEPARATOR, as I think it just uglifies the code with little
gain. (Forward) slashes work fine on Windows.

dbus/dbus-nonce.c

index 8385340feb0d4da73a44cdf027623ea10f63b202..14afc2ef741b1f629e7ab5c618e8167f0b3bd731 100644 (file)
@@ -274,7 +274,7 @@ do_noncefile_create (DBusNonceFile *noncefile,
       }
     if (use_subdir)
       {
-        if (!_dbus_string_append (&noncefile->dir, DBUS_DIR_SEPARATOR "dbus_nonce-")
+        if (!_dbus_string_append (&noncefile->dir, "/dbus_nonce-")
             || !_dbus_string_append (&noncefile->dir, _dbus_string_get_const_data (&randomStr)) )
           {
             dbus_set_error (error, DBUS_ERROR_NO_MEMORY, NULL);
@@ -282,7 +282,7 @@ do_noncefile_create (DBusNonceFile *noncefile,
           }
         if (!_dbus_string_init (&noncefile->path)
             || !_dbus_string_copy (&noncefile->dir, 0, &noncefile->path, 0)
-            || !_dbus_string_append (&noncefile->dir, DBUS_DIR_SEPARATOR "nonce"))
+            || !_dbus_string_append (&noncefile->dir, "/nonce"))
           {
             dbus_set_error (error, DBUS_ERROR_NO_MEMORY, NULL);
             goto on_error;
@@ -297,7 +297,7 @@ do_noncefile_create (DBusNonceFile *noncefile,
       {
         if (!_dbus_string_init (&noncefile->path)
             || !_dbus_string_copy (&noncefile->dir, 0, &noncefile->path, 0)
-            || !_dbus_string_append (&noncefile->path, DBUS_DIR_SEPARATOR "dbus_nonce-")
+            || !_dbus_string_append (&noncefile->path, "/dbus_nonce-")
             || !_dbus_string_append (&noncefile->path, _dbus_string_get_const_data (&randomStr)))
           {
             dbus_set_error (error, DBUS_ERROR_NO_MEMORY, NULL);