summaryrefslogtreecommitdiff
path: root/AuGetBest.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 /AuGetBest.c
parent7f6f90cfce51806340f25b80a87b147d8a743b27 (diff)
downloadxorg-lib-libXau-8274b8e4b121c3dc3bfd5d0fa4f85bc23f5c09a0.tar.gz
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 'AuGetBest.c')
-rw-r--r--AuGetBest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/AuGetBest.c b/AuGetBest.c
index 5ff1c7c..ae2b748 100644
--- a/AuGetBest.c
+++ b/AuGetBest.c
@@ -83,12 +83,12 @@ XauGetBestAuthByAddr (
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;
#ifdef hpux
if (family == FamilyLocal) {
@@ -110,7 +110,7 @@ XauGetBestAuthByAddr (
}
#endif /* hpux */
- best = 0;
+ best = NULL;
best_type = types_length;
for (;;) {
entry = XauReadAuth (auth_file);