mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 22:52:09 +01:00
gio: fix various "warning: unused variable".
This commit is contained in:
parent
f96417e470
commit
866275f56b
@ -1119,7 +1119,9 @@ lookup_uid_data (uid_t uid)
|
|||||||
char buffer[4096];
|
char buffer[4096];
|
||||||
struct passwd pwbuf;
|
struct passwd pwbuf;
|
||||||
struct passwd *pwbufp;
|
struct passwd *pwbufp;
|
||||||
|
#ifndef __BIONIC__
|
||||||
char *gecos, *comma;
|
char *gecos, *comma;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (uid_cache == NULL)
|
if (uid_cache == NULL)
|
||||||
uid_cache = g_hash_table_new_full (NULL, NULL, NULL, (GDestroyNotify)uid_data_free);
|
uid_cache = g_hash_table_new_full (NULL, NULL, NULL, (GDestroyNotify)uid_data_free);
|
||||||
@ -1205,8 +1207,10 @@ static char *
|
|||||||
lookup_gid_name (gid_t gid)
|
lookup_gid_name (gid_t gid)
|
||||||
{
|
{
|
||||||
char *name;
|
char *name;
|
||||||
|
#if defined (HAVE_GETGRGID_R)
|
||||||
char buffer[4096];
|
char buffer[4096];
|
||||||
struct group gbuf;
|
struct group gbuf;
|
||||||
|
#endif
|
||||||
struct group *gbufp;
|
struct group *gbufp;
|
||||||
|
|
||||||
if (gid_cache == NULL)
|
if (gid_cache == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user