Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cab6fc1b77c3ec4471d7d54ff6db9ad2dd59c2f5
Commit:     cab6fc1b77c3ec4471d7d54ff6db9ad2dd59c2f5
Parent:     3d509e5454a0a5ac88bf3191ab65d85952c1de31
Author:     Chuck Lever <[EMAIL PROTECTED]>
AuthorDate: Thu Dec 20 14:55:11 2007 -0500
Committer:  Trond Myklebust <[EMAIL PROTECTED]>
CommitDate: Wed Jan 30 02:06:02 2008 -0500

    lockd: Eliminate harmless mixed sign comparison in nlmdbg_cookie2a()
    
    The cookie->len field is unsigned, so the loop index variable in
    nlmdbg_cookie2a() should also be unsigned.
    
    Signed-off-by: Chuck Lever <[EMAIL PROTECTED]>
    Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
---
 fs/lockd/xdr.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fs/lockd/xdr.c b/fs/lockd/xdr.c
index 633653b..3e459e1 100644
--- a/fs/lockd/xdr.c
+++ b/fs/lockd/xdr.c
@@ -612,8 +612,7 @@ const char *nlmdbg_cookie2a(const struct nlm_cookie *cookie)
         * called with BKL held.
         */
        static char buf[2*NLM_MAXCOOKIELEN+1];
-       int i;
-       int len = sizeof(buf);
+       unsigned int i, len = sizeof(buf);
        char *p = buf;
 
        len--;  /* allow for trailing \0 */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to