Skip to content

Commit

Permalink
* nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
Browse files Browse the repository at this point in the history
	* grp/initgroups.c (internal_getgrouplist): Likewise.
  • Loading branch information
Roland McGrath committed Dec 17, 2001
1 parent ca18306 commit 79dbd98
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2001-12-16 Roland McGrath <[email protected]>

* nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
* grp/initgroups.c (internal_getgrouplist): Likewise.

* hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
`default:' to silence new GCC warning.
Rewrite cast of lvalue to silence new GCC warning.
Expand Down
4 changes: 2 additions & 2 deletions grp/initgroups.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ internal_getgrouplist (const char *user, gid_t group, long int *size,

/* This is really only for debugging. */
if (NSS_STATUS_TRYAGAIN > status || status > NSS_STATUS_RETURN)
__libc_fatal ("illegal status in " __FUNCTION__);
__libc_fatal ("illegal status in internal_getgrouplist");

if (status != NSS_STATUS_SUCCESS
&& nss_next_action (nip, status) == NSS_ACTION_RETURN)
Expand Down Expand Up @@ -214,7 +214,7 @@ getgrouplist (const char *user, gid_t group, gid_t *groups, int *ngroups)
}
else
*ngroups = result;

memcpy (groups, newgroups, *ngroups * sizeof (gid_t));

free (newgroups);
Expand Down
2 changes: 1 addition & 1 deletion nss/nsswitch.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ __nss_next (service_user **ni, const char *fct_name, void **fctp, int status,
{
/* This is really only for debugging. */
if (NSS_STATUS_TRYAGAIN > status || status > NSS_STATUS_RETURN)
__libc_fatal ("illegal status in " __FUNCTION__);
__libc_fatal ("illegal status in __nss_next");

if (nss_next_action (*ni, status) == NSS_ACTION_RETURN)
return 1;
Expand Down

0 comments on commit 79dbd98

Please sign in to comment.