From bb27ca5720cb46badb0a32e0848b67079bd724b8 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 4 Sep 2018 15:45:18 +0200 Subject: [PATCH] lib: Work-around gtk-doc's handling of the short type gtk-doc thinks "short" is only a modifier, not a type of its own (short == short int). This work-around does not change the ABI. See https://gitlab.gnome.org/GNOME/gtk-doc/issues/44 --- libfprint/fprint.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libfprint/fprint.h b/libfprint/fprint.h index be94a540..7ec48cf1 100644 --- a/libfprint/fprint.h +++ b/libfprint/fprint.h @@ -304,12 +304,12 @@ void fp_img_free(struct fp_img *img); * @fd: a file descriptor * @events: Event flags to poll for from `` * - * A structure representing a file descriptor and the events to poll + * A structure representing a file descriptor and the @events to poll * for, as returned by fp_get_pollfds(). */ struct fp_pollfd { int fd; - short events; + short int events; }; int fp_handle_events_timeout(struct timeval *timeout); @@ -326,7 +326,7 @@ int fp_get_next_timeout(struct timeval *tv); * event source is added. The @events argument is a flag as defined in * `` such as `POLLIN`, or `POLLOUT`. See fp_set_pollfd_notifiers(). */ -typedef void (*fp_pollfd_added_cb)(int fd, short events); +typedef void (*fp_pollfd_added_cb)(int fd, short int events); /** * fp_pollfd_removed_cb: