[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34565 - gnunet/src/cadet
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34565 - gnunet/src/cadet |
Date: |
Mon, 15 Dec 2014 08:17:21 +0100 |
Author: bartpolot
Date: 2014-12-15 08:17:21 +0100 (Mon, 15 Dec 2014)
New Revision: 34565
Modified:
gnunet/src/cadet/gnunet-service-cadet_channel.c
gnunet/src/cadet/gnunet-service-cadet_connection.c
gnunet/src/cadet/gnunet-service-cadet_local.c
gnunet/src/cadet/gnunet-service-cadet_tunnel.c
Log:
- avoid usage of direct stdio sprintf
Modified: gnunet/src/cadet/gnunet-service-cadet_channel.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_channel.c 2014-12-15 00:32:17 UTC
(rev 34564)
+++ gnunet/src/cadet/gnunet-service-cadet_channel.c 2014-12-15 07:17:21 UTC
(rev 34565)
@@ -2439,7 +2439,7 @@
if (NULL == ch)
return "(NULL Channel)";
- sprintf (buf, "%s:%u gid:%X (%X / %X)",
+ SPRINTF (buf, "%s:%u gid:%X (%X / %X)",
GCT_2s (ch->t), ch->port, ch->gid, ch->lid_root, ch->lid_dest);
return buf;
Modified: gnunet/src/cadet/gnunet-service-cadet_connection.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_connection.c 2014-12-15 00:32:17 UTC
(rev 34564)
+++ gnunet/src/cadet/gnunet-service-cadet_connection.c 2014-12-15 07:17:21 UTC
(rev 34565)
@@ -3212,7 +3212,7 @@
{
static char buf[128];
- sprintf (buf, "%s (->%s)",
+ SPRINTF (buf, "%s (->%s)",
GNUNET_h2s (GC_h2hc (GCC_get_id (c))), GCT_2s (c->t));
return buf;
}
Modified: gnunet/src/cadet/gnunet-service-cadet_local.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_local.c 2014-12-15 00:32:17 UTC
(rev 34564)
+++ gnunet/src/cadet/gnunet-service-cadet_local.c 2014-12-15 07:17:21 UTC
(rev 34565)
@@ -1375,6 +1375,6 @@
{
static char buf[32];
- sprintf (buf, "%u", c->id);
+ SPRINTF (buf, "%u", c->id);
return buf;
}
Modified: gnunet/src/cadet/gnunet-service-cadet_tunnel.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_tunnel.c 2014-12-15 00:32:17 UTC
(rev 34564)
+++ gnunet/src/cadet/gnunet-service-cadet_tunnel.c 2014-12-15 07:17:21 UTC
(rev 34565)
@@ -354,7 +354,7 @@
case CADET_TUNNEL_SHUTDOWN:
return "CADET_TUNNEL_SHUTDOWN";
default:
- sprintf (buf, "%u (UNKNOWN STATE)", cs);
+ SPRINTF (buf, "%u (UNKNOWN STATE)", cs);
return buf;
}
return "";
@@ -386,7 +386,7 @@
case CADET_TUNNEL_KEY_REKEY:
return "CADET_TUNNEL_KEY_REKEY";
default:
- sprintf (buf, "%u (UNKNOWN STATE)", es);
+ SPRINTF (buf, "%u (UNKNOWN STATE)", es);
return buf;
}
return "";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34565 - gnunet/src/cadet,
gnunet <=