rename ctx->errno to ctx->err to avoid conflicts with a #define errno in the system...
[project/uci.git] / libuci.c
index 59e2ea96c42fd4dcf1fabe3b2b5df2e35f6b4390..5b5db54718a5bb6dc20fc52ade8404397aa6a9f3 100644 (file)
--- a/libuci.c
+++ b/libuci.c
@@ -137,7 +137,7 @@ void uci_perror(struct uci_context *ctx, const char *prefix)
        if (!ctx)
                err = UCI_ERR_INVAL;
        else
        if (!ctx)
                err = UCI_ERR_INVAL;
        else
-               err = ctx->errno;
+               err = ctx->err;
 
        if ((err < 0) || (err >= UCI_ERR_LAST))
                err = UCI_ERR_UNKNOWN;
 
        if ((err < 0) || (err >= UCI_ERR_LAST))
                err = UCI_ERR_UNKNOWN;