diff --git a/src/common/cursor.c b/src/common/cursor.c index 616f23b5..f621b942 100644 --- a/src/common/cursor.c +++ b/src/common/cursor.c @@ -37,10 +37,12 @@ /** * Allocates a cursor as well as an image buffer where the cursor is rendered. - * If the allocation fails then the function returns NULL. * * @param client * The client owning the cursor. + * + * @return + * The newly-allocated cursor or NULL if cursor cannot be allocated. */ guac_common_cursor* guac_common_cursor_alloc(guac_client* client) { diff --git a/src/common/display.c b/src/common/display.c index ff70c587..5d8ce9f1 100644 --- a/src/common/display.c +++ b/src/common/display.c @@ -101,7 +101,7 @@ static void guac_common_display_free_layers(guac_common_display_layer* layers, /** * Allocates a display and a cursor which are used to represent the remote - * display and cursor. If the allocation fails then the function returns NULL. + * display and cursor. * * @param client * The client owning the cursor. @@ -111,6 +111,9 @@ static void guac_common_display_free_layers(guac_common_display_layer* layers, * * @param height * The desired height of the display. + * + * @return + * The newly-allocated display or NULL if display cannot be allocated. */ guac_common_display* guac_common_display_alloc(guac_client* client, int width, int height) {