[PATCH:xscope 13/14] Store ClientNumber as int instead of converting back & forth to long
Alan Coopersmith
alan.coopersmith at ORACLE.COM
Sat Sep 24 08:48:31 PDT 2011
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
scope.c | 2 +-
scope.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/scope.c b/scope.c
index b8d9b57..f2716d2 100644
--- a/scope.c
+++ b/scope.c
@@ -1058,7 +1058,7 @@ ClientName (
if (clientNumber <= 1)
return("");
- (void)sprintf(name, " %ld", FDinfo[fd].ClientNumber);
+ (void)sprintf(name, " %d", FDinfo[fd].ClientNumber);
return(name);
}
diff --git a/scope.h b/scope.h
index d14cfed..b04c331 100644
--- a/scope.h
+++ b/scope.h
@@ -107,7 +107,7 @@ extern char AudioServerHostName[MAXHOSTNAMELEN];
struct fdinfo
{
Boolean Server;
- long ClientNumber;
+ int ClientNumber;
FD pair;
unsigned char *buffer;
int bufcount;
--
1.7.3.2
More information about the xorg-devel
mailing list