# HG changeset patch # User Matt Johnston # Date 1615043117 -28800 # Node ID 837cc354b38815d201b93c99400499394add2119 # Parent 19b28d2fbe30f82e9114e92d5414be3c12a84b55 small tidy of "signal" while loop diff -r 19b28d2fbe30 -r 837cc354b388 svr-chansession.c --- a/svr-chansession.c Sat Mar 06 22:58:57 2021 +0800 +++ b/svr-chansession.c Sat Mar 06 23:05:17 2021 +0800 @@ -437,13 +437,11 @@ signame = buf_getstring(ses.payload, NULL); - i = 0; - while (signames[i].name != 0) { + for (i = 0; signames[i].name != NULL; i++) { if (strcmp(signames[i].name, signame) == 0) { sig = signames[i].signal; break; } - i++; } m_free(signame);