-
Simon McVittie authored
DBusString's length is signed for historical reasons: the right type would have been size_t or some other unsigned type. We have a *lot* of callers of _dbus_string_get_length(), so it is not really desirable to do a flag-day switch; but we know that the length is always in the range [0, INT_MAX] that is common to int and unsigned int, so we can safely add an unsigned accessor. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=17289 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
51a718c6