Skip to content

Commit a3981b8

Browse files
committed
Fix function declarations and hide local functions
1 parent ccb8d35 commit a3981b8

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

zathura/document.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "page.h"
1818
#include "plugin.h"
1919
#include "content-type.h"
20+
#include "internal.h"
2021

2122
#define DIGEST_SIZE 32
2223

zathura/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ struct zathura_document_information_entry_s {
2626
* @param document The document
2727
* @return The plugin or NULL
2828
*/
29-
zathura_plugin_t* zathura_document_get_plugin(zathura_document_t* document);
29+
const zathura_plugin_t* zathura_document_get_plugin(zathura_document_t* document);
3030

3131
#endif // INTERNAL_H

zathura/render.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ struct zathura_render_request_class_s {
160160
* Returns the type of the render request.
161161
* @return the type
162162
*/
163-
GType zathura_page_render_info_get_type(void) G_GNUC_CONST;
163+
GType zathura_render_request_get_type(void) G_GNUC_CONST;
164164
/**
165165
* Create a render request object
166166
* @param renderer a renderer object

zathura/utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ GdkAtom* get_selection(zathura_t* zathura) {
357357
return selection;
358358
}
359359

360-
char* write_first_page_column_list(unsigned int* first_page_columns, unsigned int size) {
360+
static char* write_first_page_column_list(unsigned int* first_page_columns, unsigned int size) {
361361
if (first_page_columns == NULL) {
362362
return NULL;
363363
}
@@ -374,7 +374,7 @@ char* write_first_page_column_list(unsigned int* first_page_columns, unsigned in
374374
return g_string_free_and_steal(buffer);
375375
}
376376

377-
unsigned int* parse_first_page_column_list(const char* first_page_column_list, unsigned int* size) {
377+
static unsigned int* parse_first_page_column_list(const char* first_page_column_list, unsigned int* size) {
378378
if (first_page_column_list == NULL || size == NULL) {
379379
return NULL;
380380
}

0 commit comments

Comments
 (0)