|
|
sfeed_gopher: reduce scope and shadowing a variable - sfeed - RSS and Atom parser |
|
|
 |
git clone git://git.codemadness.org/sfeed (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit 3f7b8da537dca5b97657519eb8544f02f6b32d55 |
|
|
 |
parent 538e7dc0ccf065bf59b952a46ff5658ea19f3bab |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
Date: Sun, 14 May 2023 23:58:54 +0200 |
|
|
|
|
|
|
|
sfeed_gopher: reduce scope and shadowing a variable |
|
|
|
|
|
|
|
Diffstat: |
|
|
|
M sfeed_gopher.c | 2 +- |
|
|
|
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-) |
|
|
|
--- |
|
|
 |
diff --git a/sfeed_gopher.c b/sfeed_gopher.c |
|
|
|
@@ -7,7 +7,6 @@ |
|
|
|
|
|
|
|
#include "util.h" |
|
|
|
|
|
|
|
-static struct feed f; |
|
|
|
static char *prefixpath = "/", *host = "127.0.0.1", *port = "70"; /* default */ |
|
|
|
static char *line; |
|
|
|
static size_t linesize; |
|
|
|
@@ -121,6 +120,7 @@ printfeed(FILE *fpitems, FILE *fpin, struct feed *f) |
|
|
|
int |
|
|
|
main(int argc, char *argv[]) |
|
|
|
{ |
|
|
|
+ struct feed f; |
|
|
|
FILE *fpitems, *fpindex, *fp; |
|
|
|
char *name, *p; |
|
|
|
int i; |
|