aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin_set.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-10-01 04:28:26 +1000
committerGravatar axel <axel@liljencrantz.se>2005-10-01 04:28:26 +1000
commit660ddcb4abdbe7899f3a139dc73760178dda0473 (patch)
tree6bd320f3233af47c6b0b1e6297eecf878f4a464e /builtin_set.c
parent6f08ee51e8ffafd997b131e74ffe6b6d0ab2db56 (diff)
Cast null pointers to (void *) in vararg functions
darcs-hash:20050930182826-ac50b-fa9960404bf69e57531ad02becb5015aaed35d69.gz
Diffstat (limited to 'builtin_set.c')
-rw-r--r--builtin_set.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/builtin_set.c b/builtin_set.c
index 6e702bf4..cf22e840 100644
--- a/builtin_set.c
+++ b/builtin_set.c
@@ -43,7 +43,7 @@ static int parse_fill_name( string_buffer_t *name,
sb_append(sb_err, L"set: Invalid character in variable name: ");
sb_append_char(sb_err, *src);
- sb_append2(sb_err, L"\n", parser_current_line(), L"\n", 0 );
+ sb_append2(sb_err, L"\n", parser_current_line(), L"\n", (void *)0 );
// builtin_print_help( L"set", sb_err );
return -1;
@@ -242,7 +242,7 @@ static void print_variables(int include_values, int escape, int scope)
{
wchar_t *value = env_get(key);
wchar_t *e_value = escape ? expand_escape_variable(value) : wcsdup(value);
- sb_append2(sb_out, L" ", e_value, 0);
+ sb_append2(sb_out, L" ", e_value, (void *)0);
free(e_value);
}
@@ -369,7 +369,7 @@ int builtin_set( wchar_t **argv )
L"\n",
parser_current_line(),
L"\n",
- 0);
+ (void *)0);
builtin_print_help( argv[0], sb_err );
return 1;
}
@@ -384,7 +384,7 @@ int builtin_set( wchar_t **argv )
L"\n",
parser_current_line(),
L"\n",
- 0);
+ (void *)0);
builtin_print_help( argv[0], sb_err );
return 1;
}
@@ -408,7 +408,7 @@ int builtin_set( wchar_t **argv )
L"\n",
parser_current_line(),
L"\n",
- 0);
+ (void *)0);
builtin_print_help( argv[0], sb_err );
return 1;
}
@@ -492,7 +492,7 @@ int builtin_set( wchar_t **argv )
L": Erase needs a variable name\n",
parser_current_line(),
L"\n",
- 0 );
+ (void *)0 );
builtin_print_help( argv[0], sb_err );
retcode = 1;
}
@@ -530,7 +530,7 @@ int builtin_set( wchar_t **argv )
L": Values cannot be specfied with erase\n",
parser_current_line(),
L"\n",
- 0 );
+ (void *)0 );
builtin_print_help( argv[0], sb_err );
retcode = 1;
}