summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2023-05-14 23:58:54 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-05-14 23:58:54 +0200
commit3f7b8da537dca5b97657519eb8544f02f6b32d55 (patch)
tree87d200a9d9dff8540e49a69c1b66502aa6f9033f
parent538e7dc0ccf065bf59b952a46ff5658ea19f3bab (diff)
sfeed_gopher: reduce scope and shadowing a variable
-rw-r--r--sfeed_gopher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed_gopher.c b/sfeed_gopher.c
index 78e1f12..af6a49c 100644
--- 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;