Skip to content

Commit 9f2e773

Browse files
committed
fix: add function prototypes
1 parent 85e4723 commit 9f2e773

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/context.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct _msym_context {
6767
* Public API
6868
***********************/
6969

70-
msym_context msymCreateContext(){
70+
msym_context msymCreateContext(void){
7171
msym_context ctx = malloc(sizeof(struct _msym_context));
7272
msym_thresholds_t *threshols = malloc(sizeof(msym_thresholds_t));
7373

@@ -90,7 +90,7 @@ msym_context msymCreateContext(){
9090
return NULL;
9191
}
9292

93-
const msym_thresholds_t *msymGetDefaultThresholds(){
93+
const msym_thresholds_t *msymGetDefaultThresholds(void){
9494
return &default_thresholds;
9595
}
9696

src/msym.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ extern "C" {
162162
} msym_character_table_t;
163163

164164

165-
msym_context MSYM_EXPORT msymCreateContext();
165+
msym_context MSYM_EXPORT msymCreateContext(void);
166166
msym_error_t MSYM_EXPORT msymReleaseContext(msym_context ctx);
167167

168-
const msym_thresholds_t MSYM_EXPORT *msymGetDefaultThresholds();
168+
const msym_thresholds_t MSYM_EXPORT *msymGetDefaultThresholds(void);
169169
msym_error_t MSYM_EXPORT msymSetThresholds(msym_context ctx, const msym_thresholds_t *thresholds);
170170
msym_error_t MSYM_EXPORT msymGetThresholds(msym_context ctx, const msym_thresholds_t **thresholds);
171171
msym_error_t MSYM_EXPORT msymSetElements(msym_context ctx, int length, msym_element_t *elements);

src/msym_error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void msymSetErrorDetails(const char *format, ...){
5353
va_end(args);
5454
}
5555

56-
const char MSYM_EXPORT *msymGetErrorDetails(){
56+
const char MSYM_EXPORT *msymGetErrorDetails(void){
5757
snprintf(err_details_ext, sizeof(err_details_ext), "%s",err_details); // Not really necessary
5858
msymSetErrorDetails("");
5959
return err_details_ext;

src/msym_error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extern "C" {
4444

4545
const char *msymErrorString(msym_error_t error);
4646
void msymSetErrorDetails(const char *format, ...);
47-
const char *msymGetErrorDetails();
47+
const char *msymGetErrorDetails(void);
4848

4949

5050
#ifdef __cplusplus

0 commit comments

Comments
 (0)