pipe-loader: use bool type for pipe_loader_drm_probe_fd()
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 22 Feb 2014 03:15:42 +0000 (03:15 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 22 Feb 2014 03:26:29 +0000 (03:26 +0000)
v2: Rebase on top of the rendernode changes.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> (v1)
Reviewed-by: Francisco Jerez <currojerez@riseup.net> (v1)
src/gallium/auxiliary/pipe-loader/pipe_loader.h
src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c

index 006401150da808dd6013f7fb484f5bd1441015fa..ce2118f7baad6928606098e2ac53d4cf1463cf96 100644 (file)
@@ -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);
 
index b8acbb91e538c9eec7a48bd62d94055bed2e37aa..a3fc186aaa2712d0d97b65207f07dda950e43b2f 100644 (file)
@@ -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