projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove unused argument
[project/uci.git]
/
uci.h
diff --git
a/uci.h
b/uci.h
index
6dc00f1
..
65fb7d3
100644
(file)
--- a/
uci.h
+++ b/
uci.h
@@
-89,7
+89,7
@@
extern int uci_cleanup(struct uci_context *ctx);
*
* @ctx: uci context
*/
*
* @ctx: uci context
*/
-extern char **uci_list_configs(
struct uci_context *ctx
);
+extern char **uci_list_configs();
/* UCI data structures */
/* UCI data structures */
@@
-112,6
+112,7
@@
struct uci_parse_context
/* private: */
struct uci_config *cfg;
/* private: */
struct uci_config *cfg;
+ struct uci_section *section;
FILE *file;
char *buf;
char *reason;
FILE *file;
char *buf;
char *reason;
@@
-148,7
+149,7
@@
struct uci_option
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#endif
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#endif
-#define uci_list_empty(list) (
list->next == ptr
)
+#define uci_list_empty(list) (
(list)->next == (list)
)
#define uci_list_entry(_type, _ptr) \
((struct uci_ ## _type *) ((char *)(_ptr) - offsetof(struct uci_ ## _type,list)))
#define uci_list_entry(_type, _ptr) \
((struct uci_ ## _type *) ((char *)(_ptr) - offsetof(struct uci_ ## _type,list)))