ACK: [PATCH 12/13] lib: fwts_release: make some helper functions static
ivanhu
ivan.hu at canonical.com
Thu Aug 16 09:06:25 UTC 2018
On 08/14/2018 07:24 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> A couple of the helper functions don't need to be in global scope
> so make them static.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> src/lib/src/fwts_release.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/lib/src/fwts_release.c b/src/lib/src/fwts_release.c
> index ba827452..2358f953 100644
> --- a/src/lib/src/fwts_release.c
> +++ b/src/lib/src/fwts_release.c
> @@ -46,7 +46,7 @@ static void fwts_release_field_get(char *needle, char *delimiter, char *text, ch
> * fwts_release_get_debian()
> * return release for debian based systems
> */
> -void fwts_release_get_debian(fwts_list *list, fwts_release *release)
> +static void fwts_release_get_debian(fwts_list *list, fwts_release *release)
> {
> fwts_list_link *item;
>
> @@ -64,7 +64,7 @@ void fwts_release_get_debian(fwts_list *list, fwts_release *release)
> * fwts_release_field_null
> * convert NULL fields to ""
> */
> -void fwts_release_field_null_to_str(char **field)
> +static void fwts_release_field_null_to_str(char **field)
> {
> if (*field == NULL)
> *field = strdup("");
Acked-by: Ivan Hu <ivan.hu at canonical.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20180816/f3af4e53/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20180816/f3af4e53/attachment.sig>
More information about the fwts-devel
mailing list