From: Uwe Hermann Date: Mon, 2 Jan 2012 13:33:42 +0000 (+0100) Subject: cli: Add a few more static keywords. X-Git-Tag: sigrok-cli-0.3.0~83 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1999ae06a4d06ea323218707f8e8a3c59ed404e7;p=sigrok-cli.git cli: Add a few more static keywords. --- diff --git a/anykey.c b/anykey.c index be16ff1..f0ab52e 100644 --- a/anykey.c +++ b/anykey.c @@ -30,10 +30,10 @@ #include "sigrok-cli.h" #ifdef _WIN32 -HANDLE stdin_handle; -DWORD stdin_mode; +static HANDLE stdin_handle; +static DWORD stdin_mode; #else -struct termios term_orig; +static struct termios term_orig; #endif static int received_anykey(int fd, int revents, void *user_data) diff --git a/sigrok-cli.c b/sigrok-cli.c index 1ca2c09..337d878 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -38,12 +38,12 @@ extern struct sr_hwcap_option sr_hwcap_options[]; -gboolean debug = 0; -uint64_t limit_samples = 0; -struct sr_output_format *output_format = NULL; -int default_output_format = FALSE; -char *output_format_param = NULL; -char *input_format_param = NULL; +static gboolean debug = 0; +static uint64_t limit_samples = 0; +static struct sr_output_format *output_format = NULL; +static int default_output_format = FALSE; +static char *output_format_param = NULL; +static char *input_format_param = NULL; static gboolean opt_version = FALSE; static gint opt_loglevel = SR_LOG_WARN; /* Show errors+warnings per default. */ @@ -653,7 +653,7 @@ int num_real_devices(void) return num_devices; } -int set_device_options(struct sr_device *device, GHashTable *args) +static int set_device_options(struct sr_device *device, GHashTable *args) { GHashTableIter iter; gpointer key, value;