• R/O
  • SSH

StrMod: Commit

The main repository for the StreamModule project.


Commit MetaInfo

Révisionab915a4395dad27497acfbc0c7dedcba4b904799 (tree)
l'heure2021-02-21 11:50:58
AuteurEric Hopper <hopper@omni...>
CommiterEric Hopper

Message de Log

Fix warnings caught by LGTM.

Change Summary

Modification

diff -r 98c58c05408b -r ab915a4395da StrMod/SocketModule.cxx
--- a/StrMod/SocketModule.cxx Sat Feb 20 18:48:53 2021 -0800
+++ b/StrMod/SocketModule.cxx Sat Feb 20 18:50:58 2021 -0800
@@ -187,7 +187,7 @@
187187 doConnect(fd, peer);
188188 }
189189 }
190- catch(UNIXError e)
190+ catch(UNIXError const &e)
191191 {
192192 if (fd >= 0)
193193 {
diff -r 98c58c05408b -r ab915a4395da UniEvent/UnixEventPoll.cxx
--- a/UniEvent/UnixEventPoll.cxx Sat Feb 20 18:48:53 2021 -0800
+++ b/UniEvent/UnixEventPoll.cxx Sat Feb 20 18:50:58 2021 -0800
@@ -467,7 +467,8 @@
467467 char str[] = "UnixEventPoll::signalHandler - Got bad signal #0x00\n";
468468 str[49] = "0123456789ABCDEF"[(signo >> 8) & 0x0f];
469469 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));
471472 local_sigaction act;
472473 act.sa_handler = SIG_DFL;
473474 sigemptyset(&act.sa_mask);
Afficher sur ancien navigateur de dépôt.