libdrm: Make some drm headers compatible with gcc -std=c89 -pedantic

The following minor changes were needed to these headers:
 * Convert // comments to /* */
 * No , after final member of enum

With these changes, these header files can be included by a program that
is built with gcc options:
  -std=c89 -Werror -pedantic

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
main
Daniel Kurtz 2013-08-26 23:39:16 +08:00 committed by Eric Anholt
parent a48d6e5621
commit 0f4452bb51
2 changed files with 4 additions and 4 deletions

View File

@ -181,7 +181,7 @@ enum drm_map_type {
_DRM_AGP = 3, /**< AGP/GART */ _DRM_AGP = 3, /**< AGP/GART */
_DRM_SCATTER_GATHER = 4, /**< Scatter/gather memory for PCI DMA */ _DRM_SCATTER_GATHER = 4, /**< Scatter/gather memory for PCI DMA */
_DRM_CONSISTENT = 5, /**< Consistent memory for PCI DMA */ _DRM_CONSISTENT = 5, /**< Consistent memory for PCI DMA */
_DRM_GEM = 6, /**< GEM object */ _DRM_GEM = 6 /**< GEM object */
}; };
/** /**
@ -435,7 +435,7 @@ struct drm_draw {
* DRM_IOCTL_UPDATE_DRAW ioctl argument type. * DRM_IOCTL_UPDATE_DRAW ioctl argument type.
*/ */
typedef enum { typedef enum {
DRM_DRAWABLE_CLIPRECTS, DRM_DRAWABLE_CLIPRECTS
} drm_drawable_info_type_t; } drm_drawable_info_type_t;
struct drm_update_draw { struct drm_update_draw {

View File

@ -218,11 +218,11 @@ typedef struct _drmModeProperty {
uint32_t flags; uint32_t flags;
char name[DRM_PROP_NAME_LEN]; char name[DRM_PROP_NAME_LEN];
int count_values; int count_values;
uint64_t *values; // store the blob lengths uint64_t *values; /* store the blob lengths */
int count_enums; int count_enums;
struct drm_mode_property_enum *enums; struct drm_mode_property_enum *enums;
int count_blobs; int count_blobs;
uint32_t *blob_ids; // store the blob IDs uint32_t *blob_ids; /* store the blob IDs */
} drmModePropertyRes, *drmModePropertyPtr; } drmModePropertyRes, *drmModePropertyPtr;
typedef struct _drmModeCrtc { typedef struct _drmModeCrtc {