Remove superfluous casts to 'void*'
Every non-const pointer converts automatically to it. Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
parent
62172f6fb5
commit
1f6f1669cf
@ -50,7 +50,7 @@ static const char *group_getname (const void *ent)
|
||||
|
||||
static void *group_parse (const char *line)
|
||||
{
|
||||
return (void *) sgetgrent (line);
|
||||
return sgetgrent (line);
|
||||
}
|
||||
|
||||
static int group_put (const void *ent, FILE * file)
|
||||
|
@ -42,7 +42,7 @@ static const char *passwd_getname (const void *ent)
|
||||
|
||||
static void *passwd_parse (const char *line)
|
||||
{
|
||||
return (void *) sgetpwent (line);
|
||||
return sgetpwent (line);
|
||||
}
|
||||
|
||||
static int passwd_put (const void *ent, FILE * file)
|
||||
|
@ -151,7 +151,7 @@ static const char *gshadow_getname (const void *ent)
|
||||
|
||||
static void *gshadow_parse (const char *line)
|
||||
{
|
||||
return (void *) sgetsgent (line);
|
||||
return sgetsgent (line);
|
||||
}
|
||||
|
||||
static int gshadow_put (const void *ent, FILE * file)
|
||||
|
@ -47,7 +47,7 @@ static const char *shadow_getname (const void *ent)
|
||||
|
||||
static void *shadow_parse (const char *line)
|
||||
{
|
||||
return (void *) sgetspent (line);
|
||||
return sgetspent (line);
|
||||
}
|
||||
|
||||
static int shadow_put (const void *ent, FILE * file)
|
||||
|
@ -67,7 +67,7 @@ void dolastlog (
|
||||
* the way we read the old one in.
|
||||
*/
|
||||
|
||||
if (read (fd, (void *) &newlog, sizeof newlog) != (ssize_t) sizeof newlog) {
|
||||
if (read (fd, &newlog, sizeof newlog) != (ssize_t) sizeof newlog) {
|
||||
memzero (&newlog, sizeof newlog);
|
||||
}
|
||||
if (NULL != ll) {
|
||||
|
Loading…
Reference in New Issue
Block a user