Without this patch we have no way to execute the exit callback of interface configuration in the clitest.c example! So I've changed the command search algorithm to the following: - If a command exists with our current mode setting, then we choose that one. - If our current mode is higher then MODE_CONFIG, but a command with MODE_CONFIG exists, we choose that one, and change our current mode down to MODE_CONFIG. - If the first two method fails, we choose a command with MODE_ANY, if exists.
* New void *user_context in the struct cli_def * cli_set_context and cli_get_context functions * Command for testing user context (in clitest) * Added changelog entry (as well as a couple of lines to README) * Increased version number from 1.9.5 to 1.9.6
Signed-off-by: Steve Glendinning <email@example.com>
cast "asedf" to (char *)"asedf". Check returns or: vsnprintf write <- wrap in function that acutaully garentees the full write or returns an error.
… on FreeBSD
…tall_name rather than -soname in LDFLAGS
… obsoleted by stdlib.h