summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-30 20:19:44 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-30 20:19:44 -0700
commit7fbf2ff3c925a0cc55024bc8350ad9e9bf8d1e47 (patch)
tree0c2f93f7d201d35b17d0cb6defe09004097cc711
parentbc8eb7adf2c2f04fdc262ee370feda9e0d8781c3 (diff)
Store ClientNumber as int instead of converting back & forth to long
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--scope.c2
-rw-r--r--scope.h2
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;