From 4ace40ce56837c861c321cdffa93bada132d2d00 Mon Sep 17 00:00:00 2001 From: Dmitriy Paliy Date: Thu, 11 Nov 2010 22:46:20 +0200 Subject: [PATCH] obexd: Make string_free private to filesystem plugin string_free is a callback function specific to filesystem plugin only. It is used by OBEX drivers when closing OBEX object and not API exposed to other plugins. g_string_free can be used instead of it when required. --- obexd/plugins/filesystem.c | 2 +- obexd/plugins/filesystem.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/obexd/plugins/filesystem.c b/obexd/plugins/filesystem.c index bf00ac276..bb758ab85 100644 --- a/obexd/plugins/filesystem.c +++ b/obexd/plugins/filesystem.c @@ -474,7 +474,7 @@ static void *pcsuite_open(const char *name, int oflag, mode_t mode, return append_listing(object, name, TRUE, size, err); } -int string_free(void *object) +static int string_free(void *object) { GString *string = object; diff --git a/obexd/plugins/filesystem.h b/obexd/plugins/filesystem.h index 712653f79..9c7ad9aa3 100644 --- a/obexd/plugins/filesystem.h +++ b/obexd/plugins/filesystem.h @@ -21,5 +21,4 @@ * */ -int string_free(void *object); ssize_t string_read(void *object, void *buf, size_t count); -- 2.47.3