[Patch 6/7] tabled: unsigned < 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Enums and sizeofs are unsigned. V. annoying because of int i;.

Signed-off-by: Pete Zaitcev <zaitcev@xxxxxxxxxx>

---
 server/status.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -urp -X dontdiff tabled-m/server/status.c tabled-tip/server/status.c
--- tabled-m/server/status.c	2010-04-01 19:13:05.000000000 -0600
+++ tabled-tip/server/status.c	2010-04-01 17:55:46.000000000 -0600
@@ -74,7 +74,7 @@ static bool stat_err(struct client *cli,
 	 * We do not use all codes that the main server can return,
 	 * so our array is smaller and it has gaps. Must check, in case.
 	 */
-	if (code < 0 || code >= ARRAY_SIZE(err_info) || !err_info[code].code) {
+	if (code >= ARRAY_SIZE(err_info) || !err_info[code].code) {
 		applog(LOG_INFO, "client %s status error %d",
 		       cli->addr_host, code);
 		code = InternalError;
--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux