From 8274b8e4b121c3dc3bfd5d0fa4f85bc23f5c09a0 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 28 Jun 2006 22:26:50 +0000 Subject: 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 --- AuGetAddr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'AuGetAddr.c') 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) -- cgit v1.2.3