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

index 8775b5d9cae3d5991a4397774baec5fd4a4d4e30..215787e8a118efd993b432594a5ff31c8879b938 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: gssapictx.c,v 1.12.118.5 2010/12/22 02:37:55 marka Exp $ */
+/* $Id: gssapictx.c,v 1.12.118.6 2011/03/28 05:24:50 marka Exp $ */
 
 #include <config.h>
 
@@ -177,7 +177,7 @@ log_cred(const gss_cred_id_t cred) {
        }
 
        if (gret == GSS_S_COMPLETE) {
-               if (gbuffer.length != 0) {
+               if (gbuffer.length != 0U) {
                        gret = gss_release_buffer(&minor, &gbuffer);
                        if (gret != GSS_S_COMPLETE)
                                gss_log(3, "failed gss_release_buffer: %s",
@@ -574,7 +574,7 @@ dst_gssapi_initctx(dns_name_t *name, isc_buffer_t *intoken,
        /*
         * RFC 2744 states the a valid output token has a non-zero length.
         */
-       if (gouttoken.length != 0) {
+       if (gouttoken.length != 0U) {
                GBUFFER_TO_REGION(gouttoken, r);
                RETERR(isc_buffer_copyregion(outtoken, &r));
                (void)gss_release_buffer(&minor, &gouttoken);
@@ -658,7 +658,7 @@ dst_gssapi_acceptctx(gss_cred_id_t cred,
                return (result);
        }
 
-       if (gouttoken.length > 0) {
+       if (gouttoken.length > 0U) {
                RETERR(isc_buffer_allocate(mctx, outtoken, gouttoken.length));
                GBUFFER_TO_REGION(gouttoken, r);
                RETERR(isc_buffer_copyregion(*outtoken, &r));
@@ -680,7 +680,7 @@ dst_gssapi_acceptctx(gss_cred_id_t cred,
                 * case, since principal names really should not
                 * contain null characters.
                 */
-               if (gnamebuf.length > 0 &&
+               if (gnamebuf.length > 0U &&
                    ((char *)gnamebuf.value)[gnamebuf.length - 1] == '\0')
                        gnamebuf.length--;
 
@@ -694,7 +694,7 @@ dst_gssapi_acceptctx(gss_cred_id_t cred,
                RETERR(dns_name_fromtext(principal, &namebuf, dns_rootname,
                                         ISC_FALSE, NULL));
 
-               if (gnamebuf.length != 0) {
+               if (gnamebuf.length != 0U) {
                        gret = gss_release_buffer(&minor, &gnamebuf);
                        if (gret != GSS_S_COMPLETE)
                                gss_log(3, "failed gss_release_buffer: %s",
@@ -774,9 +774,9 @@ gss_error_tostring(isc_uint32_t major, isc_uint32_t minor,
        snprintf(buf, buflen, "GSSAPI error: Major = %s, Minor = %s.",
                (char *)msg_major.value, (char *)msg_minor.value);
 
-       if (msg_major.length != 0)
+       if (msg_major.length != 0U)
                (void)gss_release_buffer(&minor_stat, &msg_major);
-       if (msg_minor.length != 0)
+       if (msg_minor.length != 0U)
                (void)gss_release_buffer(&minor_stat, &msg_minor);
        return(buf);
 #else