From e0545b654c090677ab8448b518482d265c18a0e3 Mon Sep 17 00:00:00 2001 From: Vadym Date: Wed, 20 Apr 2016 12:54:50 +0300 Subject: [PATCH] Little fixes. (#116) - Use size_t instead int to avoid compiler warn. - Remove unused parameter. - Remove unused parameter. --- sassc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sassc.c b/sassc.c index 78758fd..3b8ef66 100644 --- a/sassc.c +++ b/sassc.c @@ -164,7 +164,7 @@ struct #define NUM_STYLE_OPTION_STRINGS \ sizeof(style_option_strings) / sizeof(style_option_strings[0]) -void print_version(char* argv0) { +void print_version() { printf("sassc: %s\n", SASSC_VERSION); printf("libsass: %s\n", libsass_version()); printf("sass2scss: %s\n", sass2scss_version()); @@ -212,7 +212,8 @@ int main(int argc, char** argv) { sass_option_set_output_style(options, SASS_STYLE_NESTED); sass_option_set_precision(options, 5); - int c, i; + int c; + size_t i; int long_index = 0; static struct option long_options[] = { @@ -270,7 +271,7 @@ int main(int argc, char** argv) { if (sass_option_get_precision(options) < 0) sass_option_set_precision(options, 5); break; case 'v': - print_version(argv[0]); + print_version(); return 0; case 'h': print_usage(argv[0]);