summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2014-02-22 03:15:42 +0000
committerEmil Velikov <[email protected]>2014-02-22 03:26:29 +0000
commit6325fdd6cf69aeefdf54d5725ad1242844e4e2af (patch)
tree0635bc15ff8ea6ba616d70772127992e3742ec58 /src/gallium
parent4f37e52f374b8b1d7177634dc09ab71e30e1779d (diff)
pipe-loader: use bool type for pipe_loader_drm_probe_fd()
v2: Rebase on top of the rendernode changes. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Jakob Bornecrantz <[email protected]> (v1) Reviewed-by: Francisco Jerez <[email protected]> (v1)
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/pipe-loader/pipe_loader.h2
-rw-r--r--src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader.h b/src/gallium/auxiliary/pipe-loader/pipe_loader.h
index 006401150da..ce2118f7baa 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader.h
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader.h
@@ -132,7 +132,7 @@ pipe_loader_drm_probe(struct pipe_loader_device **devs, int ndev);
* \param auth_x If true, the pipe-loader will attempt to
* authenticate with the X server.
*/
-boolean
+bool
pipe_loader_drm_probe_fd(struct pipe_loader_device **dev, int fd,
boolean auth_x);
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
index b8acbb91e53..a3fc186aaa2 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
@@ -116,7 +116,7 @@ disconnect:
#endif
}
-boolean
+bool
pipe_loader_drm_probe_fd(struct pipe_loader_device **dev, int fd,
boolean auth_x)
{
@@ -124,7 +124,7 @@ pipe_loader_drm_probe_fd(struct pipe_loader_device **dev, int fd,
int vendor_id, chip_id;
if (!ddev)
- return FALSE;
+ return false;
if (loader_get_pci_id_for_fd(fd, &vendor_id, &chip_id)) {
ddev->base.type = PIPE_LOADER_DEVICE_PCI;
@@ -144,11 +144,11 @@ pipe_loader_drm_probe_fd(struct pipe_loader_device **dev, int fd,
goto fail;
*dev = &ddev->base;
- return TRUE;
+ return true;
fail:
FREE(ddev);
- return FALSE;
+ return false;
}
static int