History

disable registry in a better way

Sigrid Solveig Haflínudóttir committed 5 years ago

Commit c0a474b1 parent daadb0a1 file · +5 −6Browse files

Unified · Split

9gc.c+5−6
@@ -42,7 +42,7 @@ struct C9aux { · 41 unmodified lines
4242 static const char *nick;
4343 static int printjoin;
4444 static uint64_t chatoff, skipuntil;
45−static char *regsrv = "";//tcp!registry.9p.zone!6675";
45+//static char *regsrv = "tcp!registry.9p.zone!6675";
4646 static char *chatsrv = "tcp!chat.9p.zone!9990";
4747 static const char *channel = "chat";
4848
@@ -310,17 +310,16 @@ registry(void) · 261 unmodified lines
310310 int i;
311311
312312 for (i = 0; i < 10; i++) {
313− if ((a = srv(regsrv)) == NULL) {
313+// if ((a = srv(regsrv)) == NULL) {
314314 if ((a = srv(chatsrv)) != NULL) {
315315 a->c.r = ctxchatR;
316316 c9version(&a->c, &tag, Msize);
317317 wrsend(a);
318318 return a;
319319 }
320− free(a);
321− } else {
322− break;
323− }
320+// } else {
321+// break;
322+// }
324323 sleep(10);
325324 }
326325

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t