[PATCHes] A couple minor libXau patches.
Attached.
Not all that familiar with dev processes here, please clue me in if
these are going to the wrong place.
I also filed a downstream bug (cc'd) before realizing this existed in
upstream.
-tom
From d51dbb510a5196111a8f40faccb4708e01126d09 Mon Sep 17 00:00:00 2001
From: Tom Fogal <tfogal@alumni.unh.edu>
Date: Fri, 28 May 2010 10:24:14 -0600
Subject: [PATCH 1/2] Fix XauGetAuthByAddr documentation.
There are an additional two parameters for name_length and name.
---
Xau.man | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Xau.man b/Xau.man
index a336523..6ef0b03 100644
--- a/Xau.man
+++ b/Xau.man
@@ -59,7 +59,8 @@ int XauWriteAuth (FILE *\fIauth_file\fP, Xauth *\fIauth\fP\^);
.HP
Xauth *XauGetAuthByAddr (unsigned short \fIfamily\fP\^, unsigned short
\fIaddress_length\fP\^, char *\fIaddress\fP\^, unsigned short
-\fInumber_length\fP\^, char *\fInumber\fP\^);
+\fInumber_length\fP\^, char *\fInumber\fP\^, unsigned short
+\fIname_length\fP\^, char *\fIname\fP\^);
.HP
Xauth *XauGetBestAuthByAddr (unsigned short \fIfamily\fP\^, unsigned short
\fIaddress_length\fP\^, char *\fIaddress\fP\^, unsigned short
--
1.7.0.2
From 95336a33be931cbf38731059071d8d44cd3b31f2 Mon Sep 17 00:00:00 2001
From: Tom Fogal <tfogal@alumni.unh.edu>
Date: Fri, 28 May 2010 10:51:03 -0600
Subject: [PATCH 2/2] Add consts on char parameters.
---
Xau.man | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Xau.man b/Xau.man
index 6ef0b03..4ae4685 100644
--- a/Xau.man
+++ b/Xau.man
@@ -58,19 +58,19 @@ Xauth *XauReadAuth (FILE *\fIauth_file\fP\^);
int XauWriteAuth (FILE *\fIauth_file\fP, Xauth *\fIauth\fP\^);
.HP
Xauth *XauGetAuthByAddr (unsigned short \fIfamily\fP\^, unsigned short
-\fIaddress_length\fP\^, char *\fIaddress\fP\^, unsigned short
-\fInumber_length\fP\^, char *\fInumber\fP\^, unsigned short
-\fIname_length\fP\^, char *\fIname\fP\^);
+\fIaddress_length\fP\^, const char *\fIaddress\fP\^, unsigned short
+\fInumber_length\fP\^, const char *\fInumber\fP\^, unsigned short
+\fIname_length\fP\^, const char *\fIname\fP\^);
.HP
Xauth *XauGetBestAuthByAddr (unsigned short \fIfamily\fP\^, unsigned short
-\fIaddress_length\fP\^, char *\fIaddress\fP\^, unsigned short
-\fInumber_length\fP\^, char *\fInumber\fP\^, int \fItypes_length\fP\^, char
-**\fItypes\fR\^, int *\fItype_lengths\fR\^);
+\fIaddress_length\fP\^, const char *\fIaddress\fP\^, unsigned short
+\fInumber_length\fP\^, const char *\fInumber\fP\^, int \fItypes_length\fP\^,
+char **\fItypes\fR\^, const int *\fItype_lengths\fR\^);
.HP
-int XauLockAuth (char *\fIfile_name\fP\^, int \fIretries\fP\^, int
+int XauLockAuth (const char *\fIfile_name\fP\^, int \fIretries\fP\^, int
\fItimeout\fP\^, long \fIdead\fP\^);
.HP
-int XauUnlockAuth (char *\fIfile_name\fP\^);
+int XauUnlockAuth (const char *\fIfile_name\fP\^);
.HP
int XauDisposeAuth (Xauth *\fIauth\fP\^);
.ft R
--
1.7.0.2
Reply to: