*: remove superfluous casts. no code changes
This commit is contained in:
parent
35a064b67f
commit
fc66892abd
@ -197,7 +197,7 @@ int loadfont_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
* just read the entire file.
|
* just read the entire file.
|
||||||
*/
|
*/
|
||||||
len = 32*1024; // can't be larger
|
len = 32*1024; // can't be larger
|
||||||
psfhdr = (struct psf_header *) xmalloc_read(STDIN_FILENO, &len);
|
psfhdr = xmalloc_read(STDIN_FILENO, &len);
|
||||||
// xmalloc_open_zipped_read_close(filename, &len);
|
// xmalloc_open_zipped_read_close(filename, &len);
|
||||||
if (!psfhdr)
|
if (!psfhdr)
|
||||||
bb_perror_msg_and_die("error reading input font");
|
bb_perror_msg_and_die("error reading input font");
|
||||||
@ -282,7 +282,7 @@ int setfont_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
}
|
}
|
||||||
// load font
|
// load font
|
||||||
len = 32*1024; // can't be larger
|
len = 32*1024; // can't be larger
|
||||||
psfhdr = (struct psf_header *) xmalloc_open_zipped_read_close(*argv, &len);
|
psfhdr = xmalloc_open_zipped_read_close(*argv, &len);
|
||||||
if (!psfhdr)
|
if (!psfhdr)
|
||||||
bb_simple_perror_msg_and_die(*argv);
|
bb_simple_perror_msg_and_die(*argv);
|
||||||
do_load(fd, psfhdr, len);
|
do_load(fd, psfhdr, len);
|
||||||
|
@ -50,7 +50,7 @@ static int FAST_FUNC parse_module(const char *fname, struct stat *sb,
|
|||||||
if (strrstr(fname, ".ko") == NULL)
|
if (strrstr(fname, ".ko") == NULL)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
image = (char *) xmalloc_open_zipped_read_close(fname, &len);
|
image = xmalloc_open_zipped_read_close(fname, &len);
|
||||||
info = xzalloc(sizeof(module_info));
|
info = xzalloc(sizeof(module_info));
|
||||||
|
|
||||||
info->next = *first;
|
info->next = *first;
|
||||||
|
@ -123,7 +123,7 @@ int FAST_FUNC bb_init_module(const char *filename, const char *options)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Use the 2.6 way */
|
/* Use the 2.6 way */
|
||||||
image = (char *) xmalloc_open_zipped_read_close(filename, &len);
|
image = xmalloc_open_zipped_read_close(filename, &len);
|
||||||
if (image) {
|
if (image) {
|
||||||
if (init_module(image, len, options) != 0)
|
if (init_module(image, len, options) != 0)
|
||||||
rc = errno;
|
rc = errno;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user