diff options
author | Mattias Andrée <maandree@kth.se> | 2021-03-08 18:52:33 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-03-08 18:52:33 +0100 |
commit | b800ba9e60dfae5af122410b36a4a1b51b83b642 (patch) | |
tree | 495b54b344e45510401b56d3eb97b1360fc9fd34 /libgamma.h | |
parent | m + style fix + check memory allocation overflows (diff) | |
download | libgamma-b800ba9e60dfae5af122410b36a4a1b51b83b642.tar.gz libgamma-b800ba9e60dfae5af122410b36a4a1b51b83b642.tar.bz2 libgamma-b800ba9e60dfae5af122410b36a4a1b51b83b642.tar.xz |
unmark libgamma_value_of_subpixel_order as pure, unmark libgamma_value_of_connector_type as pure, fix whitespace, use goto in libgamma_value_of_{subpixel_order,connector_type} from name case to const case
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libgamma.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1979,7 +1979,7 @@ const char *libgamma_const_of_connector_type(enum libgamma_connector_type); * "LIBGAMMA_CONNECTOR_TYPE_VGA"; * @return Zero on success, `LIBGAMMA_CONNECTOR_TYPE_NOT_RECOGNISED` of not defined */ -LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __access__(__read_only__, 1), __access__(__write_only__, 2), __pure__))) +LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __access__(__read_only__, 1), __access__(__write_only__, 2)))) int libgamma_value_of_connector_type(const char *, enum libgamma_connector_type *); @@ -2020,7 +2020,7 @@ const char *libgamma_const_of_subpixel_order(enum libgamma_subpixel_order); * "Horizontal RGB" and "LIBGAMMA_SUBPIXEL_ORDER_HORIZONTAL_RGB"; * @return Zero on success, `LIBGAMMA_SUBPIXEL_ORDER_NOT_RECOGNISED` of not defined */ -LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __access__(__read_only__, 1), __access__(__write_only__, 2), __pure__))) +LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __access__(__read_only__, 1), __access__(__write_only__, 2)))) int libgamma_value_of_subpixel_order(const char *, enum libgamma_subpixel_order *); |