[exim-cvs] Quiet signedness compiler warnings.

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Exim Git Commits Mailing List
Dátum:  
Címzett: exim-cvs
Tárgy: [exim-cvs] Quiet signedness compiler warnings.
Gitweb: http://git.exim.org/exim.git/commitdiff/217b0e56836c28c897e16b7633aeba158b0ef906
Commit:     217b0e56836c28c897e16b7633aeba158b0ef906
Parent:     e2fbf4a211bdcff441c50f58f3c1f1fb17f56d61
Author:     Todd Lyons <tlyons@???>
AuthorDate: Wed Jun 19 09:36:11 2013 -0700
Committer:  Todd Lyons <tlyons@???>
CommitDate: Wed Jun 19 09:36:11 2013 -0700


    Quiet signedness compiler warnings.
---
 src/src/acl.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)


diff --git a/src/src/acl.c b/src/src/acl.c
index 1162670..d023b4a 100644
--- a/src/src/acl.c
+++ b/src/src/acl.c
@@ -2855,23 +2855,23 @@ portstr = string_nextinlist(&arg, &sep, NULL, 0);

if (hostname == NULL)
{
- *log_msgptr = "missing destination host in \"udpsend\" modifier";
+ *log_msgptr = US"missing destination host in \"udpsend\" modifier";
return ERROR;
}
if (portstr == NULL)
{
- *log_msgptr = "missing destination port in \"udpsend\" modifier";
+ *log_msgptr = US"missing destination port in \"udpsend\" modifier";
return ERROR;
}
if (arg == NULL)
{
- *log_msgptr = "missing datagram payload in \"udpsend\" modifier";
+ *log_msgptr = US"missing datagram payload in \"udpsend\" modifier";
return ERROR;
}
portnum = Ustrtol(portstr, &portend, 10);
if (*portend != '\0')
{
- *log_msgptr = "bad destination port in \"udpsend\" modifier";
+ *log_msgptr = US"bad destination port in \"udpsend\" modifier";
return ERROR;
}

@@ -2888,7 +2888,7 @@ else
r = host_find_byname(h, NULL, 0, NULL, FALSE);
if (r == HOST_FIND_FAILED || r == HOST_FIND_AGAIN)
{
- *log_msgptr = "DNS lookup failed in \"udpsend\" modifier";
+ *log_msgptr = US"DNS lookup failed in \"udpsend\" modifier";
return DEFER;
}

@@ -2900,7 +2900,7 @@ r = s = ip_socket(SOCK_DGRAM, host_af);
if (r < 0) goto defer;
r = ip_connect(s, host_af, h->address, portnum, 1);
if (r < 0) goto defer;
-len = strlen(arg);
+len = strlen(CCS arg);
r = send(s, arg, len, MSG_NOSIGNAL);
if (r < 0) goto defer;
if (r < len)