From: Felix Fietkau Date: Sat, 2 Feb 2008 23:43:47 +0000 (+0100) Subject: fix compiler error under linux X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=402b084b1e5417dc2fb7d84373c1b9fb8642696a;p=oweals%2Fuci.git fix compiler error under linux --- diff --git a/cli.c b/cli.c index bedef6d..7870728 100644 --- a/cli.c +++ b/cli.c @@ -19,7 +19,7 @@ static const char *appname = "uci"; static enum { CLI_FLAG_MERGE = (1 << 0), } flags; -static FILE *input = stdin; +static FILE *input; static struct uci_context *ctx; enum { @@ -295,6 +295,7 @@ int main(int argc, char **argv) int ret; int c; + input = stdin; ctx = uci_alloc_context(); if (!ctx) { fprintf(stderr, "Out of memory\n");