FreeBSD Bugzilla – Attachment 154040 Details for
Bug 198437
Fix net/ladvd build with clang 3.6.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Remove unnecessary null checks
net__ladvd-fix-nonnull-1.diff (text/plain), 1.08 KB, created by
Dimitry Andric
on 2015-03-08 21:34:13 UTC
(
hide
)
Description:
Remove unnecessary null checks
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2015-03-08 21:34:13 UTC
Size:
1.08 KB
patch
obsolete
>Index: net/ladvd/files/patch-src__util.c >=================================================================== >--- net/ladvd/files/patch-src__util.c (revision 0) >+++ net/ladvd/files/patch-src__util.c (working copy) >@@ -0,0 +1,22 @@ >+--- src/util.c.orig 2011-12-20 14:11:03.000000000 +0100 >++++ src/util.c 2015-03-08 22:30:38.673935000 +0100 >+@@ -213,9 +213,6 @@ >+ FILE *file; >+ int ret = 0; >+ >+- if (path == NULL || line == NULL) >+- return(0); >+- >+ if ((file = fopen(path, "r")) == NULL) >+ return(0); >+ >+@@ -232,9 +229,6 @@ >+ int write_line(const char *path, char *line, uint16_t len) { >+ int fd, ret; >+ >+- if (path == NULL || line == NULL) >+- return(0); >+- >+ if ((fd = open(path, O_WRONLY|O_TRUNC)) == -1) >+ return(0); >+ > >Property changes on: net/ladvd/files/patch-src__util.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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 198437
: 154040