about summary refs log tree commit diff
path: root/nis/nis_local_names.c
diff options
context:
space:
mode:
Diffstat (limited to 'nis/nis_local_names.c')
-rw-r--r--nis/nis_local_names.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nis/nis_local_names.c b/nis/nis_local_names.c
index bcae995837..22601a46aa 100644
--- a/nis/nis_local_names.c
+++ b/nis/nis_local_names.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 1997 Free Software Foundation, Inc.
+/* Copyright (c) 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997.
 
@@ -115,7 +115,7 @@ nis_local_principal (void)
 	  if (res == NULL)
 	    return strcpy (__principal, "nobody");
 
-	  if (res->status == NIS_SUCCESS)
+	  if (NIS_RES_STATUS (res) == NIS_SUCCESS)
 	    {
 	      if (res->objects.objects_len > 1)
 		{