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

Francisco Jerez currojerez at riseup.net
Thu Feb 13 04:53:42 PST 2014


Emil Velikov <emil.l.velikov at gmail.com> writes:

> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.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 c5f191f..f15d5c8 100644
> --- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
> +++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
> @@ -112,14 +112,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;
> @@ -138,11 +138,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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140213/aafb13b9/attachment.pgp>


More information about the mesa-dev mailing list