From 1999ae06a4d06ea323218707f8e8a3c59ed404e7 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Mon, 2 Jan 2012 14:33:42 +0100 Subject: [PATCH] cli: Add a few more static keywords. --- anykey.c | 6 +++--- sigrok-cli.c | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) 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; -- 2.30.2