]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/x25/x25_facilities.c
net: cleanup unsigned to unsigned int
[mirror_ubuntu-artful-kernel.git] / net / x25 / x25_facilities.c
index 36384a1fa9f28a3316dd28079b2bc04fce25a0fa..66c638730c7a862af95f3d83897505ce33518bd0 100644 (file)
@@ -231,7 +231,7 @@ int x25_create_facilities(unsigned char *buffer,
        }
 
        if (dte_facs->calling_len && (facil_mask & X25_MASK_CALLING_AE)) {
-               unsigned bytecount = (dte_facs->calling_len + 1) >> 1;
+               unsigned int bytecount = (dte_facs->calling_len + 1) >> 1;
                *p++ = X25_FAC_CALLING_AE;
                *p++ = 1 + bytecount;
                *p++ = dte_facs->calling_len;
@@ -240,7 +240,7 @@ int x25_create_facilities(unsigned char *buffer,
        }
 
        if (dte_facs->called_len && (facil_mask & X25_MASK_CALLED_AE)) {
-               unsigned bytecount = (dte_facs->called_len % 2) ?
+               unsigned int bytecount = (dte_facs->called_len % 2) ?
                dte_facs->called_len / 2 + 1 :
                dte_facs->called_len / 2;
                *p++ = X25_FAC_CALLED_AE;