]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: check: server port is unsigned
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Dec 2013 22:32:30 +0000 (23:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Dec 2013 22:32:30 +0000 (23:32 +0100)
Baptiste Assmann reported some confusing printf() output of the server
port since it's declared signed. Better turn it to unsigned.

There's no need to backport this, it's only used in 16-bit places.

include/types/server.h

index 82eb55fdb707c3115d6db9ee1dd1b22e2d0a5428..05d47835ecf67aa6dc5199be769036c247584a67 100644 (file)
@@ -113,7 +113,7 @@ struct tree_occ {
 struct check {
        struct connection *conn;                /* connection state for health checks */
 
-       short port;                             /* the port to use for the health checks */
+       unsigned short port;                    /* the port to use for the health checks */
        struct buffer *bi, *bo;                 /* input and output buffers to send/recv check */
        struct task *task;                      /* the task associated to the health check processing, NULL if disabled */
        struct timeval start;                   /* last health check start time */