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
42static const char *nick;42static const char *nick;
43static int printjoin;43static int printjoin;
44static uint64_t chatoff, skipuntil;44static uint64_t chatoff, skipuntil;
45static char *regsrv = "";//tcp!registry.9p.zone!6675";45//static char *regsrv = "tcp!registry.9p.zone!6675";
46static char *chatsrv = "tcp!chat.9p.zone!9990";46static char *chatsrv = "tcp!chat.9p.zone!9990";
47static const char *channel = "chat";47static const char *channel = "chat";
48 48
@@ -310,17 +310,16 @@ registry(void) · 261 unmodified lines
310 int i;310 int i;
311 311
312 for (i = 0; i < 10; i++) {312 for (i = 0; i < 10; i++) {
313 if ((a = srv(regsrv)) == NULL) {313// if ((a = srv(regsrv)) == NULL) {
314 if ((a = srv(chatsrv)) != NULL) {314 if ((a = srv(chatsrv)) != NULL) {
315 a->c.r = ctxchatR;315 a->c.r = ctxchatR;
316 c9version(&a->c, &tag, Msize);316 c9version(&a->c, &tag, Msize);
317 wrsend(a);317 wrsend(a);
318 return a;318 return a;
319 }319 }
320 free(a);320// } else {
321 } else {321// break;
322 break;322// }
323 }
324 sleep(10);323 sleep(10);
325 }324 }
326 325

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