Mark local functions as static

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>
This commit is contained in:
Anders Kaseorg
2014-04-23 16:31:27 -04:00
committed by John Hood
parent a52b095f50
commit cd2ae36f36
7 changed files with 88 additions and 88 deletions
+4 -4
View File
@@ -70,7 +70,7 @@
const size_t buf_size = 16384;
void emulate_terminal( int fd );
static void emulate_terminal( int fd );
int main( void )
{
@@ -158,8 +158,8 @@ int main( void )
}
/* Print a frame if the last frame was more than 1/50 seconds ago */
bool tick( Terminal::Framebuffer &state, Terminal::Framebuffer &new_frame,
const Terminal::Display &display )
static bool tick( Terminal::Framebuffer &state, Terminal::Framebuffer &new_frame,
const Terminal::Display &display )
{
static bool initialized = false;
static struct timeval last_time;
@@ -207,7 +207,7 @@ bool tick( Terminal::Framebuffer &state, Terminal::Framebuffer &new_frame,
assume the previous frame was sent to the real terminal.
*/
void emulate_terminal( int fd )
static void emulate_terminal( int fd )
{
/* get current window size */
struct winsize window_size;