rules: fix UCI context in error reporting
authorJo-Philipp Wich <jo@mein.io>
Sun, 9 Apr 2017 13:19:52 +0000 (15:19 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 27 Apr 2017 15:10:50 +0000 (17:10 +0200)
commitd596f728e98bf4124de4018e28ecdc8ab070f34c
tree990c0ab3ff398644791dc6f3f5f3ebd13b6a6a9f
parent1d0564c3558a115d90fe266e668221135bcb3221
rules: fix UCI context in error reporting

Commit e678dcb "Add support for netifd-generated rules" broke the UCI
context reporting for rule warnings. Refactor the code to restore this
functionality.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
rules.c