Bug 17061: Handle error return from sysconf correctly
authorJoe Marcus Clarke <marcus@freedesktop.org>
Fri, 5 Sep 2008 02:13:30 +0000 (22:13 -0400)
committerColin Walters <walters@verbum.org>
Wed, 1 Oct 2008 19:00:29 +0000 (15:00 -0400)
commit008bca5a4e3600d56ac7c1fe984789110b83e1b2
treef2227d290d0a07eb5434c5aa9c010b85f39498c5
parente8ea01bd07eedb3c98bc0725e5799fe08499262a
Bug 17061: Handle error return from sysconf correctly

* dbus/dbus-sysdeps-unix.c:
* dbus/dbus-sysdeps-util-unix.c: Cast return
from sysconf temporarily so we actually see
-1.

Signed-off-by: Colin Walters <walters@verbum.org>
dbus/dbus-sysdeps-unix.c
dbus/dbus-sysdeps-util-unix.c