Fix redundant casts to the same type
Found using clang-tidy's google-readability-casting.
This commit is contained in:
parent
aca7790217
commit
0b5a2092a0
|
@ -115,7 +115,7 @@ static void start_application(const char *command) {
|
|||
setsid();
|
||||
if (fork() == 0) {
|
||||
/* This is the child */
|
||||
execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, (void *)NULL);
|
||||
execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, NULL);
|
||||
/* not reached */
|
||||
}
|
||||
exit(0);
|
||||
|
|
|
@ -83,8 +83,7 @@ xcb_char2b_t *convert_utf8_to_ucs2(char *input, size_t *real_strlen) {
|
|||
}
|
||||
|
||||
/* Do the conversion */
|
||||
size_t rc = iconv(ucs2_conversion_descriptor, (char **)&input,
|
||||
&input_size, (char **)&output, &output_size);
|
||||
size_t rc = iconv(ucs2_conversion_descriptor, &input, &input_size, (char **)&output, &output_size);
|
||||
if (rc == (size_t)-1) {
|
||||
perror("Converting to UCS-2 failed");
|
||||
free(buffer);
|
||||
|
|
|
@ -191,7 +191,7 @@ void start_application(const char *command, bool no_startup_id) {
|
|||
if (!no_startup_id)
|
||||
sn_launcher_context_setup_child_process(context);
|
||||
|
||||
execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, (void *)NULL);
|
||||
execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, NULL);
|
||||
/* not reached */
|
||||
}
|
||||
_exit(0);
|
||||
|
|
Loading…
Reference in New Issue