summary refs log tree commit diff
path: root/nis/nis_print.c
diff options
context:
space:
mode:
Diffstat (limited to 'nis/nis_print.c')
-rw-r--r--nis/nis_print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nis/nis_print.c b/nis/nis_print.c
index 01a2d9dcec..0e36017615 100644
--- a/nis/nis_print.c
+++ b/nis/nis_print.c
@@ -351,7 +351,7 @@ nis_print_result (const nis_result *res)
 {
   unsigned int i;
 
-  printf (_("Status            : %s\n"), nis_sperrno (res->status));
+  printf (_("Status            : %s\n"), nis_sperrno (NIS_RES_STATUS (res)));
   printf (_("Number of objects : %u\n"), res->objects.objects_len);
 
   for (i = 0; i < res->objects.objects_len; i++)