ref: c0a474b6bf77fa260be4b9dbf6ec0e35a5121ea6
parent: daadb0a1ab632a225059a48d7d9d725a03e621f2
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Jan 29 21:54:29 EST 2021
disable registry in a better way
--- a/9gc.c
+++ b/9gc.c
@@ -42,7 +42,7 @@
static const char *nick;
static int printjoin;
static uint64_t chatoff, skipuntil;
-static char *regsrv = "";//tcp!registry.9p.zone!6675";
+//static char *regsrv = "tcp!registry.9p.zone!6675";
static char *chatsrv = "tcp!chat.9p.zone!9990";
static const char *channel = "chat";
@@ -310,7 +310,7 @@
int i;
for (i = 0; i < 10; i++) {
- if ((a = srv(regsrv)) == NULL) {
+// if ((a = srv(regsrv)) == NULL) {
if ((a = srv(chatsrv)) != NULL) {
a->c.r = ctxchatR;
c9version(&a->c, &tag, Msize);
@@ -317,10 +317,9 @@
wrsend(a);
return a;
}
- free(a);
- } else {
- break;
- }
+// } else {
+// break;
+// }
sleep(10);
}