summaryrefslogtreecommitdiff
path: root/AuGetAddr.c
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2006-06-28 22:26:50 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2006-06-28 22:26:50 +0000
commit8274b8e4b121c3dc3bfd5d0fa4f85bc23f5c09a0 (patch)
treecb61869ef8db7fba494853286faba6a7901198ac /AuGetAddr.c
parent7f6f90cfce51806340f25b80a87b147d8a743b27 (diff)
Remove prototype for XauGetAuthByName to clear lint warning: name declared
but never used or defined Fix sparse warnings: -warning: Using plain integer as NULL pointer -warning: non-ANSI definition of function
Diffstat (limited to 'AuGetAddr.c')
-rw-r--r--AuGetAddr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/AuGetAddr.c b/AuGetAddr.c
index ab13cb6..6275531 100644
--- a/AuGetAddr.c
+++ b/AuGetAddr.c
@@ -71,12 +71,12 @@ _Xconst char* name)
auth_name = XauFileName ();
if (!auth_name)
- return 0;
+ return NULL;
if (access (auth_name, R_OK) != 0) /* checks REAL id */
- return 0;
+ return NULL;
auth_file = fopen (auth_name, "rb");
if (!auth_file)
- return 0;
+ return NULL;
for (;;) {
entry = XauReadAuth (auth_file);
if (!entry)