> I think the non-const parameter of json_object_from_file is a bug, and in > that case, a cast is better than a completely unnecessary strdup(). > > - Felix
I've checked the source of json_object_from_file(char*) and the buffer walks directly into open(3) and vsyslog(3). open(3) takes a const buffer while vsyslog(3) takes a varargs list which doesn't tinker with the buffer, too. You are completely right, Felix, and a cast is enough. -- Dmitri Bachtin _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
