Make functions static that are only accessed from the same compilation unit

Also removed some declarations for undefined functions.
This commit is contained in:
Tobias Brunner
2022-10-05 19:00:46 +02:00
parent c58ba0cb9f
commit 7f46c76125
23 changed files with 29 additions and 70 deletions
+2 -2
View File
@@ -83,14 +83,14 @@ typedef struct {
char *value;
} setting_t;
int setting_find(const void *a, const void *b)
static int setting_find(const void *a, const void *b)
{
const char *key = a;
const setting_t *setting = b;
return strcmp(key, setting->key);
}
int setting_sort(const void *a, const void *b, void *user)
static int setting_sort(const void *a, const void *b, void *user)
{
const setting_t *sa = a, *sb = b;
return strcmp(sa->key, sb->key);