OSDN Git Service
(root)
/
android-x86
/
system-netd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fef7e14
)
Fix boolean to integer return value conversion.
author
Erik Kline
<ek@google.com>
Wed, 3 Jun 2015 08:44:24 +0000
(17:44 +0900)
committer
Erik Kline
<ek@google.com>
Wed, 3 Jun 2015 08:44:33 +0000
(17:44 +0900)
Change-Id: Ie996c9b4f84f9cd8395abb592ecf0c04cfdc4023
server/InterfaceController.cpp
patch
|
blob
|
history
diff --git
a/server/InterfaceController.cpp
b/server/InterfaceController.cpp
index
640bf8c
..
4316929
100644
(file)
--- a/
server/InterfaceController.cpp
+++ b/
server/InterfaceController.cpp
@@
-53,7
+53,7
@@
int writeValueToPath(
const char* dirname, const char* subdirname, const char* basename,
const char* value) {
std::string path(StringPrintf("%s/%s/%s", dirname, subdirname, basename));
- return WriteStringToFile(value, path);
+ return WriteStringToFile(value, path)
? 0 : -1
;
}
void setOnAllInterfaces(const char* dirname, const char* basename, const char* value) {