diff options
author | TingPing <tingping@tingping.se> | 2014-12-17 18:49:59 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-12-28 06:47:23 -0500 |
commit | 95febd978c9f5b0c1eb76b3a2c506ef540087ce3 (patch) | |
tree | 4a8dedf6edc54cb37a7917548306c4f07cd23a8a /src/common/identd.c | |
parent | 3f855f07f5d2e9a08a586436719358c40a46f29d (diff) |
Fix building as c89
Diffstat (limited to 'src/common/identd.c')
-rw-r--r-- | src/common/identd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/identd.c b/src/common/identd.c index cbe6ff5e..ae95df8d 100644 --- a/src/common/identd.c +++ b/src/common/identd.c @@ -82,7 +82,7 @@ identd (char *username) EMIT_SIGNAL (XP_TE_IDENTD, current_sess, inet_ntoa (addr.sin_addr), username, NULL, NULL, 0); #endif inet_ntop (AF_INET, &addr.sin_addr, ipbuf, sizeof (ipbuf)); - snprintf (outbuf, sizeof (outbuf), "*\tServicing ident request from %s as %s\n", ipbuf, username); + g_snprintf (outbuf, sizeof (outbuf), "*\tServicing ident request from %s as %s\n", ipbuf, username); PrintText (current_sess, outbuf); recv (read_sok, buf, sizeof (buf) - 1, 0); @@ -91,7 +91,7 @@ identd (char *username) p = strchr (buf, ','); if (p) { - snprintf (outbuf, sizeof (outbuf) - 1, "%d, %d : USERID : UNIX : %s\r\n", + g_snprintf (outbuf, sizeof (outbuf) - 1, "%d, %d : USERID : UNIX : %s\r\n", atoi (buf), atoi (p + 1), username); outbuf[sizeof (outbuf) - 1] = 0; /* ensure null termination */ send (read_sok, outbuf, strlen (outbuf), 0); @@ -155,7 +155,7 @@ identd_ipv6 (char *username) identd_ipv6_is_running = FALSE; inet_ntop (AF_INET6, &addr.sin6_addr, ipbuf, sizeof (ipbuf)); - snprintf (outbuf, sizeof (outbuf), "*\tServicing ident request from %s as %s\n", ipbuf, username); + g_snprintf (outbuf, sizeof (outbuf), "*\tServicing ident request from %s as %s\n", ipbuf, username); PrintText (current_sess, outbuf); recv (read_sok, buf, sizeof (buf) - 1, 0); @@ -164,7 +164,7 @@ identd_ipv6 (char *username) p = strchr (buf, ','); if (p) { - snprintf (outbuf, sizeof (outbuf) - 1, "%d, %d : USERID : UNIX : %s\r\n", atoi (buf), atoi (p + 1), username); + g_snprintf (outbuf, sizeof (outbuf) - 1, "%d, %d : USERID : UNIX : %s\r\n", atoi (buf), atoi (p + 1), username); outbuf[sizeof (outbuf) - 1] = 0; /* ensure null termination */ send (read_sok, outbuf, strlen (outbuf), 0); } |