- Jun 05, 2015
-
-
Anders Kaseorg authored
This helps to catch unused functions like the former mosh_read_line, allows the compiler to make better inlining decisions, and reduces the binary size a bit. Signed-off-by:Anders Kaseorg <andersk@mit.edu>
-
Anders Kaseorg authored
This function is buggy. feof(file) does not become true until after we’ve tried to read past the last character; it should instead be checking the getc return value for EOF (which is distinct from any unsigned char). Really it should just be replaced by istream &std::getline(istream &is, string &str). Fortunately, it’s unused so we can just delete it. Resolves a truncated stdio return value issue found by Coverity Scan service. Signed-off-by:Anders Kaseorg <andersk@mit.edu>
-
Anders Kaseorg authored
Signed-off-by:Anders Kaseorg <andersk@mit.edu>
-
Anders Kaseorg authored
Signed-off-by:Anders Kaseorg <andersk@mit.edu>
-
Anders Kaseorg authored
Print a real error message instead of abnormally aborting. Found by Coverity Scan service. Signed-off-by:Anders Kaseorg <andersk@mit.edu>
-
Anders Kaseorg authored
size_t is unsigned. Fixes two issues found by the Coverity Scan service, one about the dead code and one about the std::string exception being uncaught by mosh-server. Signed-off-by:Anders Kaseorg <andersk@mit.edu>
-
Geoffrey Thomas authored
This function has never in its history had a codepath returning false.
-
Geoffrey Thomas authored
Both f and frame.last_frame must have the same number of rows here, but since we're iterating over frame.last_frame's rows, make that more explicit.
-
Geoffrey Thomas authored
-
Geoffrey Thomas authored
Now everything we throw or catch ourselves is a subclass of std::exception.
-
Geoffrey Thomas authored
-
Geoffrey Thomas authored
-
Geoffrey Thomas authored
This refactors out a very common pattern of formatting "%s: %s" with e.function.c_str() and strerror( e.the_errno ) into just the what() method of NetworkException. It's also a prerequisite for making cleaner public API for any exceptions we throw, and allows us to more easily get exceptions passed back to us to handle.
-
- Jun 04, 2015
-
-
Anders Kaseorg authored
I do sympathize with the motivation for these trailing commas, but they cause silly build failures with --enable-compile-warnings=error (which is used at least by the Debian/Ubuntu package). CXX parseraction.o In file included from terminal.h:42:0, from parseraction.cc:37: terminalframebuffer.h:200:39: error: comma at end of enumerator list [-Werror=pedantic] MOUSE_REPORTING_ANY_EVENT = 1003, ^ terminalframebuffer.h:210:34: error: comma at end of enumerator list [-Werror=pedantic] MOUSE_ENCODING_URXVT = 1015, ^ cc1plus: all warnings being treated as errors Makefile:354: recipe for target 'parseraction.o' failed Signed-off-by:Anders Kaseorg <andersk@mit.edu>
-
- Jun 01, 2015
-
-
John Hood authored
-
John Hood authored
-
Louis Kruger authored
-
- May 29, 2015
-
-
Anders Kaseorg authored
Signed-off-by:Anders Kaseorg <andersk@mit.edu>
-
John Hood authored
-
Anders Kaseorg authored
Some systems have IO::Socket::INET6 preinstalled, so we might as well accept either. Signed-off-by:Anders Kaseorg <andersk@mit.edu>
-
John Hood authored
-
- May 25, 2015
-
-
john hood authored
-
john hood authored
-
Geoffrey Thomas authored
-
Anders Kaseorg authored
This works around a bug in Autoconf 2.64 and earlier, which generated ridiculous symbols like /* #undef HAVE_M4_NORMALIZE___FCNTL_H__LANGINFO_H__LIMITS_H__… */ instead of the ones we need. It was fixed by v2.65~21: http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=81c80d1bf6c8ddf732d0b89f6fc5e306dac9705e Signed-off-by:
Anders Kaseorg <andersk@mit.edu>
-
Anton Lundin authored
AIX is missing TIOCSCTTY, so we assign us a ctty via a open of the slave device. Signed-off-by:Anton Lundin <glance@acc.umu.se>
-
John Hood authored
-
john hood authored
-
John Hood authored
-
John Hood authored
-
Anders Kaseorg authored
A Darwin PPC 32-bit user observes huge values numer == 1000000000 and denom == 18431683 returned from mach_timebase_info(). For these values, mach_absolute_time() * numer overflows uint64_t every 1000.82 seconds, and 1000000 * denom always overflows uint32_t, with the effect of making time run backwards at -11190660 times its usual speed. This bug was masked on Darwin x86 64-bit, where numer == denom == 1. Fix it by doing the conversion with double arithmetic instead. Closes #479. Signed-off-by:Anders Kaseorg <andersk@mit.edu>
-
- May 21, 2015
- Feb 03, 2015
-
-
Pasi Sjöholm authored
Fixes following problem when compiling mosh with gcc4.8 and __ARM_NEON__ defined by using -121 instead of 135. ocb.cc: In function 'block double_block(block)': ocb.cc:263:56: error: narrowing conversion of '135' from 'int' to '__builtin_neon_qi' inside { } is ill-formed in C++11 [-Werror=narrowing] Signed-off-by:Pasi Sjöholm <pasi.sjoholm@jollamobile.com>
-
- Dec 16, 2014
-
-
Keith Winstein authored
-
Andrew Chin authored
I'm not sure if this is correct, but tmux does this! Signed-off-by:Andrew Chin <achin@eminence32.net>
-
- Dec 09, 2014
-
-
Andrew Chin authored
Signed-off-by:Andrew Chin <achin@eminence32.net>
-
Andrew Chin authored
We aren't sure why this change was made, and reverting it appears to help fix mouse issues in emacs related to text hilighting. Signed-off-by:Andrew Chin <achin@eminence32.net>
-
- Apr 27, 2014
-
-
Richard Woodbury authored
-
- Jan 09, 2014
-
-
Anders Kaseorg authored
Signed-off-by:Anders Kaseorg <andersk@mit.edu>
-