summaryrefslogtreecommitdiff
path: root/rx/XAuth.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-26 17:53:41 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-26 17:53:41 -0200
commit1a750c272683fab37cc7cd4327ccefdfa39faf85 (patch)
tree23c973ca975ec853807032e3bb1eca58422f31ce /rx/XAuth.c
parent549335c473370f8a243be79387577306e525f144 (diff)
Correct make distcheck and most sparse warnings.
Only remaining sparse warning is about no previous definition for the function vectors declared in Xtrans/Xtranssock.c. Also, use only one .gitignore file, instead of one per directory.
Diffstat (limited to 'rx/XAuth.c')
-rw-r--r--rx/XAuth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rx/XAuth.c b/rx/XAuth.c
index 89e904b..bf10915 100644
--- a/rx/XAuth.c
+++ b/rx/XAuth.c
@@ -36,6 +36,7 @@ The Open Group.
#ifndef XFUNCPROTO_NOT_AVAILABLE
#include <X11/Xauth.h>
#endif
+#include "XAuth.h"
static void
printhexdigit(char *ptr, unsigned int d)
@@ -136,7 +137,7 @@ SECURITY extension not supported\n");
}
auth_return = XSecurityGenerateAuthorization(dpy, auth_in, xsamask,
&xsa, auth_id_ret);
- if (auth_return == 0) {
+ if (auth_return == NULL) {
fprintf(stderr,
"Error: Failed to setup authorization, cannot create key\n");
goto error;