diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2009-01-23 22:36:42 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2009-01-23 22:36:42 +0000 |
commit | d1c13e168660dfc384ead2efe29eb20a7abc5950 (patch) | |
tree | af85fff369a6092b78c7e3c694784cd7207f1c1c /cups/testsnmp.c | |
parent | d2354e63977f1d0386a8d5724db2ec90fb666824 (diff) | |
download | cups-d1c13e168660dfc384ead2efe29eb20a7abc5950.tar.gz |
Merge changes from CUPS 1.4svn-r8290.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@1144 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/testsnmp.c')
-rw-r--r-- | cups/testsnmp.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cups/testsnmp.c b/cups/testsnmp.c index fbbc30929..52983a968 100644 --- a/cups/testsnmp.c +++ b/cups/testsnmp.c @@ -3,7 +3,7 @@ * * SNMP test program for the Common UNIX Printing System (CUPS). * - * Copyright 2008 by Apple Inc. + * Copyright 2008-2009 by Apple Inc. * * These coded instructions, statements, and computer programs are the * property of Apple Inc. and are protected by Federal copyright @@ -155,11 +155,13 @@ print_packet(cups_snmp_t *packet, /* I - SNMP response packet */ break; case CUPS_ASN1_BIT_STRING : - printf("BIT-STRING \"%s\"\n", packet->object_value.string); + printf("BIT-STRING \"%s\"\n", + (char *)packet->object_value.string.bytes); break; case CUPS_ASN1_OCTET_STRING : - printf("OCTET-STRING \"%s\"\n", packet->object_value.string); + printf("OCTET-STRING \"%s\"\n", + (char *)packet->object_value.string.bytes); break; case CUPS_ASN1_NULL_VALUE : @@ -173,8 +175,8 @@ print_packet(cups_snmp_t *packet, /* I - SNMP response packet */ case CUPS_ASN1_HEX_STRING : fputs("Hex-STRING", stdout); - for (i = 0; i < packet->object_value.hex_string.num_bytes; i ++) - printf(" %02X", packet->object_value.hex_string.bytes[i]); + for (i = 0; i < packet->object_value.string.num_bytes; i ++) + printf(" %02X", packet->object_value.string.bytes[i]); putchar('\n'); break; |