Fix redundant casts to the same type
Found using clang-tidy's google-readability-casting.
Orestis Floros
6 years ago
114 | 114 |
setsid();
|
115 | 115 |
if (fork() == 0) {
|
116 | 116 |
/* This is the child */
|
117 | |
execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, (void *)NULL);
|
|
117 |
execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, NULL);
|
118 | 118 |
/* not reached */
|
119 | 119 |
}
|
120 | 120 |
exit(0);
|
82 | 82 |
}
|
83 | 83 |
|
84 | 84 |
/* Do the conversion */
|
85 | |
size_t rc = iconv(ucs2_conversion_descriptor, (char **)&input,
|
86 | |
&input_size, (char **)&output, &output_size);
|
|
85 |
size_t rc = iconv(ucs2_conversion_descriptor, &input, &input_size, (char **)&output, &output_size);
|
87 | 86 |
if (rc == (size_t)-1) {
|
88 | 87 |
perror("Converting to UCS-2 failed");
|
89 | 88 |
free(buffer);
|
190 | 190 |
if (!no_startup_id)
|
191 | 191 |
sn_launcher_context_setup_child_process(context);
|
192 | 192 |
|
193 | |
execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, (void *)NULL);
|
|
193 |
execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, NULL);
|
194 | 194 |
/* not reached */
|
195 | 195 |
}
|
196 | 196 |
_exit(0);
|