[Xcb] [PATCH:libxcb 2/2] Correct @param "e" to "error" in xcb_poll_for_reply*()
Uli Schlachter
psychon at znc.in
Thu Feb 11 20:47:59 CET 2016
Both patches look trivially correct, so both:
Reviewed-by: Uli Schlachter <psychon at znc.in>
(Not that it matters much...)
Am 06.02.2016 um 21:26 schrieb Alan Coopersmith:
> Found by clang -Wdocumentation:
>
> ./xcbext.h:271:11: warning: parameter 'e' not found in the function
> declaration [-Wdocumentation]
> * @param e Location to store errors in, or NULL. Ignored for un...
> ^
> ./xcbext.h:271:11: note: did you mean 'error'?
> * @param e Location to store errors in, or NULL. Ignored for un...
> ^
> error
>
> ./xcbext.h:283:11: warning: parameter 'e' not found in the function
> declaration [-Wdocumentation]
> * @param e Location to store errors in, or NULL. Ignored for un...
> ^
> ./xcbext.h:283:11: note: did you mean 'error'?
> * @param e Location to store errors in, or NULL. Ignored for un...
> ^
> error
>
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> ---
> src/xcbext.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/xcbext.h b/src/xcbext.h
> index bb422f0..90f9d58 100644
> --- a/src/xcbext.h
> +++ b/src/xcbext.h
> @@ -268,7 +268,7 @@ void *xcb_wait_for_reply64(xcb_connection_t *c, uint64_t request, xcb_generic_er
> * @param c The connection to the X server.
> * @param request Sequence number of the request as returned by xcb_send_request().
> * @param reply Location to store the reply in, must not be NULL.
> - * @param e Location to store errors in, or NULL. Ignored for unchecked requests.
> + * @param error Location to store errors in, or NULL. Ignored for unchecked requests.
> * @return 1 when the reply to the request was returned, else 0.
> *
> * Checks if the reply to the given request already received. Does not block.
> @@ -280,7 +280,7 @@ int xcb_poll_for_reply(xcb_connection_t *c, unsigned int request, void **reply,
> * @param c The connection to the X server.
> * @param request 64-bit sequence number of the request as returned by xcb_send_request().
> * @param reply Location to store the reply in, must not be NULL.
> - * @param e Location to store errors in, or NULL. Ignored for unchecked requests.
> + * @param error Location to store errors in, or NULL. Ignored for unchecked requests.
> * @return 1 when the reply to the request was returned, else 0.
> *
> * Checks if the reply to the given request already received. Does not block.
>
--
99 little bugs in the code
99 little bugs in the code
Take one down, patch it around
117 little bugs in the code
-- @irqed
More information about the Xcb
mailing list