Codebase list i3-gaps / 0b5a209
Fix redundant casts to the same type Found using clang-tidy's google-readability-casting. Orestis Floros 6 years ago
3 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
114114 setsid();
115115 if (fork() == 0) {
116116 /* This is the child */
117 execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, (void *)NULL);
117 execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, NULL);
118118 /* not reached */
119119 }
120120 exit(0);
8282 }
8383
8484 /* 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);
8786 if (rc == (size_t)-1) {
8887 perror("Converting to UCS-2 failed");
8988 free(buffer);
190190 if (!no_startup_id)
191191 sn_launcher_context_setup_child_process(context);
192192
193 execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, (void *)NULL);
193 execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, NULL);
194194 /* not reached */
195195 }
196196 _exit(0);