Remove some redundant casts.
This commit is contained in:
parent
4f59fc9967
commit
8585ec930f
7 changed files with 13 additions and 14 deletions
|
@ -105,8 +105,8 @@ turn(void)
|
|||
if (msgfilepath == downfil)
|
||||
pr("Logins disabled.\n");
|
||||
|
||||
if ((fwrite((void *)&tgm, sizeof(tgm), 1, fptr) != 1) ||
|
||||
(fwrite((void *)buf, tgm.tel_length, 1, fptr) != 1)) {
|
||||
if ((fwrite(&tgm, sizeof(tgm), 1, fptr) != 1) ||
|
||||
(fwrite(buf, tgm.tel_length, 1, fptr) != 1)) {
|
||||
fclose(fptr);
|
||||
pr("Something went wrong writing the message file.\n");
|
||||
logerror("Could not properly write message file (%s).\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue