The main repository for the StreamModule project.
Révision | ab915a4395dad27497acfbc0c7dedcba4b904799 (tree) |
---|---|
l'heure | 2021-02-21 11:50:58 |
Auteur | Eric Hopper <hopper@omni...> |
Commiter | Eric Hopper |
Fix warnings caught by LGTM.
@@ -187,7 +187,7 @@ | ||
187 | 187 | doConnect(fd, peer); |
188 | 188 | } |
189 | 189 | } |
190 | - catch(UNIXError e) | |
190 | + catch(UNIXError const &e) | |
191 | 191 | { |
192 | 192 | if (fd >= 0) |
193 | 193 | { |
@@ -467,7 +467,8 @@ | ||
467 | 467 | char str[] = "UnixEventPoll::signalHandler - Got bad signal #0x00\n"; |
468 | 468 | str[49] = "0123456789ABCDEF"[(signo >> 8) & 0x0f]; |
469 | 469 | str[50] = "0123456789ABCDEF"[signo & 0x0f]; |
470 | - ::write(2, str, sizeof(str)); | |
470 | + // Ignore errors or problems in writing to stderr. | |
471 | + (void)::write(2, str, sizeof(str)); | |
471 | 472 | local_sigaction act; |
472 | 473 | act.sa_handler = SIG_DFL; |
473 | 474 | sigemptyset(&act.sa_mask); |