mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
cast to void to avoid warning
This commit is contained in:
parent
9968a13711
commit
fec1eafa32
1 changed files with 2 additions and 2 deletions
|
@ -448,7 +448,7 @@ static NSStringEncoding defaultEncoding;
|
|||
&pw, buf, sizeof(buf), &p) == 0)
|
||||
{
|
||||
ok = (chown(lpath, pw.pw_uid, -1) == 0);
|
||||
chown(lpath, -1, pw.pw_gid);
|
||||
(void)chown(lpath, -1, pw.pw_gid);
|
||||
}
|
||||
#else
|
||||
#if defined(HAVE_GETPWNAM)
|
||||
|
@ -459,7 +459,7 @@ static NSStringEncoding defaultEncoding;
|
|||
if (pw != 0)
|
||||
{
|
||||
ok = (chown(lpath, pw->pw_uid, -1) == 0);
|
||||
chown(lpath, -1, pw->pw_gid);
|
||||
(void)chown(lpath, -1, pw->pw_gid);
|
||||
}
|
||||
[gnustep_global_lock unlock];
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue