From: Willy Tarreau Date: Tue, 10 Dec 2013 22:32:30 +0000 (+0100) Subject: CLEANUP: check: server port is unsigned X-Git-Tag: v1.5-dev20~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ba813cd6963c8a987566499032ab633a955922c;p=thirdparty%2Fhaproxy.git CLEANUP: check: server port is unsigned 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. --- diff --git a/include/types/server.h b/include/types/server.h index 82eb55fdb7..05d47835ec 100644 --- a/include/types/server.h +++ b/include/types/server.h @@ -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 */