zygo

ncurses gopher client
Log | Files | Refs

commit 9a826177f4f09c2c093262219a5319e572a29e7c
parent 5de0432534aa0630523a5de2c7103762336efd10
Author: hhvn <dev@hhvn.uk>
Date:   Sat, 16 Jul 2022 12:05:21 +0100

'seg' variables should have the type of their enum

Diffstat:
Mzygo.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/zygo.c b/zygo.c @@ -187,8 +187,7 @@ uritoelem(const char *uri) { char *tmp = dup; char *serv = NULL; char *p; - enum {SEGSERVER, SEGTYPE, SEGSELECTOR}; - int seg; + enum {SEGSERVER, SEGTYPE, SEGSELECTOR} seg; ret = elem_create(0, '1', NULL, NULL, NULL, NULL); @@ -263,8 +262,7 @@ gophertoelem(Elem *from, const char *line) { char *dup = estrdup(line); char *tmp = dup; char *p; - enum {SEGDESC, SEGSELECTOR, SEGSERVER, SEGPORT}; - int seg; + enum {SEGDESC, SEGSELECTOR, SEGSERVER, SEGPORT} seg; ret = elem_create(0, *(tmp++), NULL, NULL, NULL, NULL);