mesa/src/gbm
Daniel Stone 378025ca8b gbm: Use unsigned for BO offset getter
The actual offset returned is uint32_t, however int64_t was used as the
return type from gbm_bo_get_offset to allow negative returns to signal
errors to the caller.

In case of an error getting the offset, the user will also be unable to
get the handle/FD, and thus have nothing to offset into. This means that
returning 0 as an error value is harmless, allowing us to change the
return type to uint32_t in order to avoid signed/unsigned confusion in
callers.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Jason Ekstrand <jason@jlekstrand.net>
2017-03-23 15:28:41 +00:00
..
backends/dri gbm: Use unsigned for BO offset getter 2017-03-23 15:28:41 +00:00
main gbm: Use unsigned for BO offset getter 2017-03-23 15:28:41 +00:00
Android.mk Android: move libdrm settings to top-level Android.common.mk 2016-06-13 15:31:29 +01:00
gbm-symbols-check gbm: Export a get modifiers 2017-03-15 10:36:05 -07:00
Makefile.am gbm: automake: remove unused defines 2016-11-21 14:46:40 +00:00
Makefile.sources gbm: split out source file to Makefile.sources 2016-05-23 12:07:46 +01:00