diff options
| author | Michael Forney <mforney@mforney.org> | 2019-08-10 22:20:27 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-08-12 02:24:38 +0000 |
| commit | 16e4b11f358512e8c7c7d2e67d0a0853c18f8966 (patch) | |
| tree | a96f8e3144e20d5b30af88270922d7459593bfec /pkg/libnl/patch/0003-Don-t-return-expression-in-function-returning-void.patch | |
| parent | f45e57f9bd216739fb3c425a1aefbca4386c0a52 (diff) | |
libnl: Fix some portability issues
Diffstat (limited to 'pkg/libnl/patch/0003-Don-t-return-expression-in-function-returning-void.patch')
| -rw-r--r-- | pkg/libnl/patch/0003-Don-t-return-expression-in-function-returning-void.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkg/libnl/patch/0003-Don-t-return-expression-in-function-returning-void.patch b/pkg/libnl/patch/0003-Don-t-return-expression-in-function-returning-void.patch new file mode 100644 index 00000000..997179a1 --- /dev/null +++ b/pkg/libnl/patch/0003-Don-t-return-expression-in-function-returning-void.patch @@ -0,0 +1,39 @@ +From befefcc3c3fef5d7d15713ae9dfb82108c331d56 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Sun, 11 Aug 2019 04:50:32 +0000 +Subject: [PATCH] Don't return expression in function returning void + +--- + lib/cache.c | 2 +- + lib/object.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/cache.c b/lib/cache.c +index 427f5df..badf91c 100644 +--- a/lib/cache.c ++++ b/lib/cache.c +@@ -421,7 +421,7 @@ void nl_cache_free(struct nl_cache *cache) + + void nl_cache_put(struct nl_cache *cache) + { +- return nl_cache_free(cache); ++ nl_cache_free(cache); + } + + /** @} */ +diff --git a/lib/object.c b/lib/object.c +index aeb4307..f0c73da 100644 +--- a/lib/object.c ++++ b/lib/object.c +@@ -300,7 +300,7 @@ void nl_object_dump_buf(struct nl_object *obj, char *buf, size_t len) + .dp_buflen = len, + }; + +- return nl_object_dump(obj, &dp); ++ nl_object_dump(obj, &dp); + } + + /** +-- +2.22.0 + |
