From 493726e6a9b82c06ac6c80bdc6fec17fd5e43499 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 31 Jan 2016 13:09:30 -0800 Subject: [PATCH] Remove exporting add_mtab_item -- fixes bug #2198 --- bacula/src/findlib/fstype.c | 6 +++--- bacula/src/tools/fstype.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bacula/src/findlib/fstype.c b/bacula/src/findlib/fstype.c index ab3b20616e..4fc4f2669b 100644 --- a/bacula/src/findlib/fstype.c +++ b/bacula/src/findlib/fstype.c @@ -67,9 +67,9 @@ static int compare_mtab_items(void *item1, void *item2) return 0; } -void add_mtab_item(void *user_ctx, struct stat *st, const char *fstype, - const char *mountpoint, const char *mntopts, - const char *fsname) +static void add_mtab_item(void *user_ctx, struct stat *st, const char *fstype, + const char *mountpoint, const char *mntopts, + const char *fsname) { rblist *mtab_list = (rblist *)user_ctx; mtab_item *item, *ritem; diff --git a/bacula/src/tools/fstype.c b/bacula/src/tools/fstype.c index d61e0f28b8..f8240a7c25 100644 --- a/bacula/src/tools/fstype.c +++ b/bacula/src/tools/fstype.c @@ -68,9 +68,9 @@ void print_mtab_item(void *user_ctx, struct stat *st, const char *fstype, ((void *)st->st_dev), fstype, mountpoint, mntopts); } -void add_mtab_item(void *user_ctx, struct stat *st, const char *fstype, - const char *mountpoint, const char *mntopts, - const char *fsname) +static void add_mtab_item(void *user_ctx, struct stat *st, const char *fstype, + const char *mountpoint, const char *mntopts, + const char *fsname) { rblist *mtab_list = (rblist *)user_ctx; mtab_item *item, *ritem; -- 2.39.5