Print this page
7126 NSS_XbyY_FINI has too much logic for a function-like macro

*** 1022,1032 **** 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); --- 1022,1031 ----
*** 1035,1045 **** 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"); --- 1034,1043 ----
*** 2296,2300 **** --- 2294,2306 ---- 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); + }