]> sigrok.org Git - sigrok-cli.git/commitdiff
cli: Add a few more static keywords.
authorUwe Hermann <redacted>
Mon, 2 Jan 2012 13:33:42 +0000 (14:33 +0100)
committerUwe Hermann <redacted>
Mon, 2 Jan 2012 13:33:42 +0000 (14:33 +0100)
anykey.c
sigrok-cli.c

index be16ff11a37fa6895a4385d93665f890f2cb8b4e..f0ab52efe6548a9654822781670acd4ab80d046d 100644 (file)
--- a/anykey.c
+++ b/anykey.c
 #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)
index 1ca2c090eea331bba58938c489cbdbf121c4d3f8..337d878bdc1cc4c438ce23d617ee3f12f8b8e863 100644 (file)
 
 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;