aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorZachary T Welch <zwelch@codesourcery.com>2010-12-08 18:55:09 -0800
committerJoe Damato <ice799@gmail.com>2010-12-10 00:39:21 -0800
commitba6aca21bd9e0e66dac17b1828cf6b6e7377b983 (patch)
treeb0ad829909e0ff24994d14a8b7851ac4e5738811 /options.c
parentdd1352379a16ae982041f6be4fa62e3bf0dab7fb (diff)
downloadltrace-ba6aca21bd9e0e66dac17b1828cf6b6e7377b983.tar.gz
Fix building with --enable-debug
Numerous warnings had snuck into the build, preventing ltrace from building with --enable-debug (which uses -Wall, -Werror, and more). This patch fixes the problems, mostly caused by -Wsign-compare. Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
Diffstat (limited to 'options.c')
-rw-r--r--options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options.c b/options.c
index c7e3be6..74c28bd 100644
--- a/options.c
+++ b/options.c
@@ -37,7 +37,7 @@ struct options_t options = {
};
char *library[MAX_LIBRARIES];
-int library_num = 0;
+size_t library_num = 0;
static char *progname; /* Program name (`ltrace') */
int opt_i = 0; /* instruction pointer */
int opt_r = 0; /* print relative timestamp */