netifd: propagate error code on netifd_reload()
[project/netifd.git] / utils.h
diff --git a/utils.h b/utils.h
index b0a7d02..4e14bcf 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -16,6 +16,7 @@
 
 #include <unistd.h>
 #include <stdio.h>
+#include <uci_blob.h>
 #include <libubox/list.h>
 #include <libubox/avl.h>
 #include <libubox/avl-cmp.h>
@@ -97,10 +98,8 @@ static inline int fls(int x)
         x <<= 2;
         r -= 2;
     }
-    if (!(x & 0x80000000u)) {
-        x <<= 1;
+    if (!(x & 0x80000000u))
         r -= 1;
-    }
     return r;
 }
 #endif
@@ -114,6 +113,8 @@ char * format_macaddr(uint8_t *mac);
 
 uint32_t crc32_file(FILE *fp);
 
+const char * uci_get_validate_string(const struct uci_blob_param_list *c, int i);
+
 #ifdef __APPLE__
 #define s6_addr32      __u6_addr.__u6_addr32
 #endif