diff options
author | Alexandru Ardelean <ardeleanalex@gmail.com> | 2017-03-27 09:35:04 +0300 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-04-05 17:54:59 +0200 |
commit | 5fbd904e5b4ed87243c09c86adcfb17ae93aa4f5 (patch) | |
tree | 4e02b6ffb833d34a749c989907b4d95fb35acd45 /netifd.h | |
parent | 6e0acecbacdb5bf1ce0b71d4c2512eae4606be57 (diff) |
netifd: propagate error code on netifd_reload()
The context is that we generate some of the UCI config
for netifd via scripts/programs.
Every once in a while, there's a goof when doing that
UCI generation, and netifd prints out the error at
stderr, but returns 0 (success) err-code.
This change will fail the ubus call if UCI config
is invalid or missing for /etc/config/network.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Acked-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'netifd.h')
-rw-r--r-- | netifd.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -98,6 +98,6 @@ struct interface; extern const char *main_path; extern const char *config_path; void netifd_restart(void); -void netifd_reload(void); +int netifd_reload(void); #endif |