diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-10-02 15:37:50 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-10-02 15:37:50 -0400 |
commit | dc407006a7f5912d7610ccfb57a608986135263a (patch) | |
tree | c462daf7c20f8c288a5a652a45da1fc0a4d0e60f /cups | |
parent | cfaaa07a1976ecc30b683503113f0c2c89c11a40 (diff) | |
download | cups-dc407006a7f5912d7610ccfb57a608986135263a.tar.gz |
Resolve new compiler warnings.
Diffstat (limited to 'cups')
-rw-r--r-- | cups/sidechannel.c | 11 | ||||
-rw-r--r-- | cups/snmp.c | 4 |
2 files changed, 8 insertions, 7 deletions
diff --git a/cups/sidechannel.c b/cups/sidechannel.c index b43123a8c..56a5d0116 100644 --- a/cups/sidechannel.c +++ b/cups/sidechannel.c @@ -1,10 +1,11 @@ /* * Side-channel API code for CUPS. * - * Copyright 2007-2014 by Apple Inc. - * Copyright 2006 by Easy Software Products. + * Copyright © 2007-2019 by Apple Inc. + * Copyright © 2006 by Easy Software Products. * - * Licensed under Apache License v2.0. See the file "LICENSE" for more information. + * Licensed under Apache License v2.0. See the file "LICENSE" for more + * information. */ /* @@ -589,8 +590,8 @@ cupsSideChannelWrite( if ((buffer = _cupsBufferGet((size_t)datalen + 4)) == NULL) return (-1); - buffer[0] = command; - buffer[1] = status; + buffer[0] = (char)command; + buffer[1] = (char)status; buffer[2] = (char)(datalen >> 8); buffer[3] = (char)(datalen & 255); diff --git a/cups/snmp.c b/cups/snmp.c index 1d9da01f2..6da119d76 100644 --- a/cups/snmp.c +++ b/cups/snmp.c @@ -1,7 +1,7 @@ /* * SNMP functions for CUPS. * - * Copyright © 2007-2014 by Apple Inc. + * Copyright © 2007-2019 by Apple Inc. * Copyright © 2006-2007 by Easy Software Products, all rights reserved. * * Licensed under Apache License v2.0. See the file "LICENSE" for more @@ -1167,7 +1167,7 @@ asn1_encode_snmp(unsigned char *buffer, /* I - Buffer */ memcpy(bufptr, packet->community, commlen); bufptr += commlen; - *bufptr++ = packet->request_type; /* Get-Request-PDU/Get-Next-Request-PDU */ + *bufptr++ = (unsigned char)packet->request_type; /* Get-Request-PDU/Get-Next-Request-PDU */ asn1_set_length(&bufptr, reqlen); asn1_set_integer(&bufptr, (int)packet->request_id); |