File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,6 @@ static void arena_free(void *ptr) {
9999
100100cmark_mem CMARK_ARENA_MEM_ALLOCATOR = {arena_calloc , arena_realloc , arena_free };
101101
102- cmark_mem * cmark_get_arena_mem_allocator () {
102+ cmark_mem * cmark_get_arena_mem_allocator (void ) {
103103 return & CMARK_ARENA_MEM_ALLOCATOR ;
104104}
Original file line number Diff line number Diff line change @@ -111,13 +111,13 @@ typedef struct cmark_mem {
111111 * realloc and free.
112112 */
113113CMARK_GFM_EXPORT
114- cmark_mem * cmark_get_default_mem_allocator ();
114+ cmark_mem * cmark_get_default_mem_allocator (void );
115115
116116/** An arena allocator; uses system calloc to allocate large
117117 * slabs of memory. Memory in these slabs is not reused at all.
118118 */
119119CMARK_GFM_EXPORT
120- cmark_mem * cmark_get_arena_mem_allocator ();
120+ cmark_mem * cmark_get_arena_mem_allocator (void );
121121
122122/** Resets the arena allocator, quickly returning all used memory
123123 * to the operating system.
Original file line number Diff line number Diff line change 1010cmark_node_type CMARK_NODE_LAST_BLOCK = CMARK_NODE_FOOTNOTE_DEFINITION ;
1111cmark_node_type CMARK_NODE_LAST_INLINE = CMARK_NODE_FOOTNOTE_REFERENCE ;
1212
13- int cmark_version () { return CMARK_GFM_VERSION ; }
13+ int cmark_version (void ) { return CMARK_GFM_VERSION ; }
1414
15- const char * cmark_version_string () { return CMARK_GFM_VERSION_STRING ; }
15+ const char * cmark_version_string (void ) { return CMARK_GFM_VERSION_STRING ; }
1616
1717static void * xcalloc (size_t nmem , size_t size ) {
1818 void * ptr = calloc (nmem , size );
@@ -38,7 +38,7 @@ static void xfree(void *ptr) {
3838
3939cmark_mem CMARK_DEFAULT_MEM_ALLOCATOR = {xcalloc , xrealloc , xfree };
4040
41- cmark_mem * cmark_get_default_mem_allocator () {
41+ cmark_mem * cmark_get_default_mem_allocator (void ) {
4242 return & CMARK_DEFAULT_MEM_ALLOCATOR ;
4343}
4444
You can’t perform that action at this time.
0 commit comments