summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-04-03 02:18:38 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2008-05-12 19:59:10 (GMT)
commitf62afca5f63ccae1f5f5f008c1a5441b86c3235d (patch)
treedbc7241384f40557d92e504cdebb1ff904a775a5
parentfd6f4829916ccdbecf3de724b6db09e5c694a5b8 (diff)
downloadmoo-master.zip
moo-master.tar.gz
moo-master.tar.bz2
moo-master.tar.xz
%d -> %"PRIdN"HEADmaster
-rw-r--r--net_bsd_tcp.c2
-rw-r--r--server.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/net_bsd_tcp.c b/net_bsd_tcp.c
index d48769e..c59e36b 100644
--- a/net_bsd_tcp.c
+++ b/net_bsd_tcp.c
@@ -118,7 +118,7 @@ proto_make_listener(Var desc, int *fd, Var * canon, const char **name)
} else
*canon = var_ref(desc);
- stream_printf(st, "port %d", canon->v.num);
+ stream_printf(st, "port %"PRIdN, canon->v.num);
*name = reset_stream(st);
*fd = s;
diff --git a/server.c b/server.c
index 2c50274..ff699ba 100644
--- a/server.c
+++ b/server.c
@@ -734,7 +734,7 @@ emergency_mode()
} else {
int i;
- printf("** %d errors during parsing:\n",
+ printf("** %"PRIdN" errors during parsing:\n",
errors.v.list[0].v.num);
for (i = 1; i <= errors.v.list[0].v.num; i++)
printf(" %s\n", errors.v.list[i].v.str);
@@ -777,7 +777,7 @@ emergency_mode()
} else {
int i;
- printf("** %d errors during parsing:\n",
+ printf("** %"PRIdN" errors during parsing:\n",
errors.v.list[0].v.num);
for (i = 1; i <= errors.v.list[0].v.num; i++)
printf(" %s\n", errors.v.list[i].v.str);
@@ -1131,7 +1131,7 @@ write_active_connections(void)
dbio_printf("%d active connections with listeners\n", count);
for (h = all_shandles; h; h = h->next)
- dbio_printf("%d %d\n", h->player, h->listener);
+ dbio_printf("%"PRIdN" %"PRIdN"\n", h->player, h->listener);
}
int
@@ -1163,7 +1163,7 @@ read_active_connections(void)
Var v;
if (have_listeners) {
- if (dbio_scanf("%d %d\n", &who, &listener) != 2) {
+ if (dbio_scanf("%"PRIdN" %"PRIdN"\n", &who, &listener) != 2) {
errlog("READ_ACTIVE_CONNECTIONS: Bad conn/listener pair.\n");
return 0;
}