From 2b0ba180280ab7e7cf79a66a6a583064911bfa05 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 17 Sep 2009 11:27:15 +0200 Subject: [PATCH] fix uci_lookup_ptr comments --- uci.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uci.h b/uci.h index 74bbdff..95d9c0a 100644 --- a/uci.h +++ b/uci.h @@ -147,7 +147,9 @@ extern int uci_unload(struct uci_context *ctx, struct uci_package *p); * Examples: * network.@interface[0].ifname ('ifname' option of the first interface section) * network.@interface[-1] (last interface section) - * Note: uci_lookup_ext will automatically load a config package if necessary + * Note: uci_lookup_ptr will automatically load a config package if necessary + * @str must not be constant, as it will be modified and used for the strings inside @ptr, + * thus it must also be available as long as @ptr is in use. */ extern int uci_lookup_ptr(struct uci_context *ctx, struct uci_ptr *ptr, char *str, bool extended); -- 2.11.0