[Mesa-dev] [PATCH 07/10] pipe-loader: use bool type for pipe_loader_drm_probe_fd()

Emil Velikov emil.l.velikov at gmail.com
Thu Feb 13 08:18:17 PST 2014


Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Jakob Bornecrantz <jakob at vmware.com>
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
---
 src/gallium/auxiliary/pipe-loader/pipe_loader.h     | 2 +-
 src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 8 ++++----
 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 e0525df..cc6b183 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader.h
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader.h
@@ -129,7 +129,7 @@ pipe_loader_drm_probe(struct pipe_loader_device **devs, int ndev);
  *
  * \sa pipe_loader_probe
  */
-boolean
+bool
 pipe_loader_drm_probe_fd(struct pipe_loader_device **dev, int fd);
 
 #endif
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
index 2d26e79..b5eb1e2 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
@@ -111,14 +111,14 @@ disconnect:
 #endif
 }
 
-boolean
+bool
 pipe_loader_drm_probe_fd(struct pipe_loader_device **dev, int fd)
 {
    struct pipe_loader_drm_device *ddev = CALLOC_STRUCT(pipe_loader_drm_device);
    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;
@@ -137,11 +137,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
-- 
1.8.5.4



More information about the mesa-dev mailing list