]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
2007-06-21 Havoc Pennington <hp@redhat.com>
authorHavoc Pennington <hp@redhat.com>
Thu, 21 Jun 2007 21:28:59 +0000 (21:28 +0000)
committerHavoc Pennington <hp@redhat.com>
Thu, 21 Jun 2007 21:28:59 +0000 (21:28 +0000)
* dbus/dbus-watch.c (dbus_watch_get_fd): 1) its behavior should
not be the same as before, the ABI has never been declared stable
on Windows and 2) do not commit to cross-platform files without
posting the exact patch to the mailing list

* dbus/dbus-sysdeps-util.c (_dbus_sysdeps_test): as I have pointed
out before, either 0xff needs to work on both platforms, or none
of the dbus code can rely on it working. That means the options
are 1) audit the code for anywhere that relies on 0xff working, if
none found ideally add a test that it *doesn't* work and make unix
reject it explicitly, but in any case this test would go away or
2) make it work on Windows also, then we don't have to figure out
whether we rely on it.

And in either case, post the exact patch to the mailing list and
don't just commit.

ChangeLog
dbus/dbus-sysdeps-util.c
dbus/dbus-watch.c

index 9efb0ac12d8d65d323fb03ef41e6511d2da4fdf1..0fc6e9e4de016fd281fc67c77bea2d345b64a6be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2007-06-21  Havoc Pennington  <hp@redhat.com>
+
+       * dbus/dbus-watch.c (dbus_watch_get_fd): 1) its behavior should
+       not be the same as before, the ABI has never been declared stable
+       on Windows and 2) do not commit to cross-platform files without
+       posting the exact patch to the mailing list
+       
+       * dbus/dbus-sysdeps-util.c (_dbus_sysdeps_test): as I have pointed
+       out before, either 0xff needs to work on both platforms, or none
+       of the dbus code can rely on it working. That means the options
+       are 1) audit the code for anywhere that relies on 0xff working, if
+       none found ideally add a test that it *doesn't* work and make unix
+       reject it explicitly, but in any case this test would go away or
+       2) make it work on Windows also, then we don't have to figure out 
+       whether we rely on it.
+
+       And in either case, post the exact patch to the mailing list and
+       don't just commit.
+
 2007-06-21 Ralf Habacker  <ralf.habacker@freenet.de>
 
        * cmake/CMakeLists.txt: added VERSION_PATCH to be able to 
index c5aecb95db10efb905f3874816508726b8e3e189..1f6ceb9b670004af131e6db0140e5ed44000ac91 100644 (file)
@@ -141,7 +141,6 @@ _dbus_sysdeps_test (void)
       exit (1);
     }
 
-#ifndef DBUS_WIN
   _dbus_string_init_const (&str, "0xff");
   if (!_dbus_string_parse_double (&str,
                                  0, &val, &pos))
@@ -159,7 +158,7 @@ _dbus_sysdeps_test (void)
       _dbus_warn ("_dbus_string_parse_double of \"0xff\" returned wrong position %d", pos);
       exit (1);
     }
-#endif
+
 #ifdef DBUS_WIN
   check_path_absolute ("c:/", TRUE);
   check_path_absolute ("c:/foo", TRUE);
index 634ab247676b44d65317c3e2cb35a16c363e17cc..eed9a105c00f0a723ff5c434fe7f9db66f238aad 100644 (file)
@@ -489,11 +489,7 @@ _dbus_watch_set_handler (DBusWatch        *watch,
 int
 dbus_watch_get_fd (DBusWatch *watch)
 {
-#ifdef DBUS_WIN_FIXME
-  return watch->fd;
-#else
   return dbus_watch_get_unix_fd(watch);
-#endif
 }
 
 /**