Print this page
7126 NSS_XbyY_FINI has too much logic for a function-like macro
@@ -1022,11 +1022,10 @@
static void
output_loop_diag_a(
int n,
char *dbase,
struct __nsw_lookup_v1 *lkp)
-
{
(void) fprintf(__nss_debug_file,
"NSS_retry(%d): '%s': trying '%s' ... ",
n, dbase, lkp->service_name);
(void) fflush(__nss_debug_file);
@@ -1035,11 +1034,10 @@
static void
output_loop_diag_b(
nss_status_t res,
struct __nsw_lookup_v1 *lkp)
-
{
(void) fprintf(__nss_debug_file, "result=");
switch (res) {
case NSS_SUCCESS:
(void) fprintf(__nss_debug_file, "SUCCESS");
@@ -2296,5 +2294,13 @@
case _SC_GETGR_R_SIZE_MAX:
return (__nss_buflen_group);
}
return (__nss_buflen_default);
}
+
+void *
+_nss_XbyY_fini(nss_XbyY_args_t *args)
+{
+ if ((args->returnval == NULL) && (args->erange != 0))
+ errno = ERANGE;
+ return (args->returnval);
+}