FreeBSD Bugzilla – Attachment 227915 Details for
Bug 258512
net/ifdepd: fix build with clang 13
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
net/ifdepd: fix clang 13 warnings and non-static inline functions
net__ifdepd-fix-clang13-1.diff (text/plain), 1.37 KB, created by
Dimitry Andric
on 2021-09-15 12:13:24 UTC
(
hide
)
Description:
net/ifdepd: fix clang 13 warnings and non-static inline functions
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2021-09-15 12:13:24 UTC
Size:
1.37 KB
patch
obsolete
>commit bc48c46e65e8a638cbc76853c7d69df1642a824c >Author: Dimitry Andric <dim@FreeBSD.org> >Date: Wed Sep 15 11:35:54 2021 +0200 > > net/ifdepd: fix clang 13 warnings and non-static inline functions > >diff --git a/net/ifdepd/files/patch-ifdepd.c b/net/ifdepd/files/patch-ifdepd.c >new file mode 100644 >index 000000000000..f6836dabd96a >--- /dev/null >+++ b/net/ifdepd/files/patch-ifdepd.c >@@ -0,0 +1,44 @@ >+--- ifdepd.c.orig 2011-04-12 13:24:48 UTC >++++ ifdepd.c >+@@ -188,7 +188,7 @@ void int_down(int_name if_name) { >+ } >+ } >+ >+-inline void cleanup() { >++static inline void cleanup() { >+ if (s_opt != NULL) >+ free(s_opt); >+ if (d_opt != NULL) >+@@ -204,7 +204,7 @@ void usage(const char *progname) { >+ progname); >+ } >+ >+-inline int del_count(const char *s, const char d) { >++static inline int del_count(const char *s, const char d) { >+ int cnt=0, a; >+ for (a=0; s[a] != '\0'; a++) >+ if (s[a] == d) >+@@ -415,9 +415,10 @@ int main(int argc, char *argv[]) { >+ if (!ints_exists(s_ints, s_cnt)) { >+ free(s_opt); >+ free(s_ints); >+- if (D) >++ if (D) { >+ free(d_opt); >+ free(d_ints); >++ } >+ exit(1); >+ } >+ break; >+@@ -429,9 +430,10 @@ int main(int argc, char *argv[]) { >+ if (!ints_exists(d_ints, d_cnt)) { >+ free(d_opt); >+ free(d_ints); >+- if (S) >++ if (S) { >+ free(s_opt); >+ free(s_ints); >++ } >+ exit(1); >+ } >+ break;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 258512
: 227915