]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
unsigned constants
authorMark Andrews <marka@isc.org>
Mon, 28 Mar 2011 05:32:16 +0000 (05:32 +0000)
committerMark Andrews <marka@isc.org>
Mon, 28 Mar 2011 05:32:16 +0000 (05:32 +0000)
lib/dns/gssapi_link.c

index b368ed095e43d62f87849dcb7fd1f2aded22abc2..381ba1020681e7d7f5b050191480546b7861fa20 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 /*
- * $Id: gssapi_link.c,v 1.16 2011/01/11 23:47:13 tbox Exp $
+ * $Id: gssapi_link.c,v 1.17 2011/03/28 05:32:16 marka Exp $
  */
 
 #include <config.h>
@@ -181,7 +181,7 @@ gssapi_sign(dst_context_t *dctx, isc_buffer_t *sig) {
         * allocated space.
         */
        isc_buffer_putmem(sig, gsig.value, gsig.length);
-       if (gsig.length != 0)
+       if (gsig.length != 0U)
                gss_release_buffer(&minor, &gsig);
 
        return (ISC_R_SUCCESS);
@@ -293,7 +293,7 @@ gssapi_restore(dst_key_t *key, const char *keystr) {
        isc_result_t result;
 
        len = strlen(keystr);
-       if ((len % 4) != 0)
+       if ((len % 4) != 0U)
                return (ISC_R_BADBASE64);
 
        len = (len / 4) * 3;
@@ -338,7 +338,7 @@ gssapi_dump(dst_key_t *key, isc_mem_t *mctx, char **buffer, int *length) {
                        major, minor);
                return (ISC_R_FAILURE);
        }
-       if (gssbuffer.length == 0)
+       if (gssbuffer.length == 0U)
                return (ISC_R_FAILURE);
        len = ((gssbuffer.length + 2)/3) * 4;
        buf = isc_mem_get(mctx, len);