diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2014-02-06 18:33:34 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2014-02-06 18:33:34 +0000 |
commit | 7e86f2f686334cb3db458b4585dfce9c1b712bc4 (patch) | |
tree | 88b4a0536faefcada96437e7cddd3a36cfdee0a4 /cups/testsnmp.c | |
parent | b1564baed9db112cb1334027f1d141877d88fcf4 (diff) | |
download | cups-7e86f2f686334cb3db458b4585dfce9c1b712bc4.tar.gz |
Full sweep of all Clang warnings, plus some bug fixes for incorrect memcpy usage.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11558 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/testsnmp.c')
-rw-r--r-- | cups/testsnmp.c | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/cups/testsnmp.c b/cups/testsnmp.c index f1498c834..66e2d76ee 100644 --- a/cups/testsnmp.c +++ b/cups/testsnmp.c @@ -1,24 +1,17 @@ /* * "$Id$" * - * SNMP test program for CUPS. + * SNMP test program for CUPS. * - * Copyright 2008-2010 by Apple Inc. + * Copyright 2008-2014 by Apple Inc. * - * These coded instructions, statements, and computer programs are the - * property of Apple Inc. and are protected by Federal copyright - * law. Distribution and use rights are outlined in the file "LICENSE.txt" - * which should have been included with this file. If this file is - * file is missing or damaged, see the license at "http://www.cups.org/". + * These coded instructions, statements, and computer programs are the + * property of Apple Inc. and are protected by Federal copyright + * law. Distribution and use rights are outlined in the file "LICENSE.txt" + * which should have been included with this file. If this file is + * file is missing or damaged, see the license at "http://www.cups.org/". * - * This file is subject to the Apple OS-Developed Software exception. - * - * Contents: - * - * main() - Main entry. - * scan_oid() - Scan an OID value. - * show_oid() - Show the specified OID. - * usage() - Show program usage and exit. + * This file is subject to the Apple OS-Developed Software exception. */ /* @@ -132,8 +125,8 @@ static void print_packet(cups_snmp_t *packet, /* I - SNMP response packet */ void *data) /* I - User data pointer (not used) */ { - int i; /* Looping var */ - char temp[1024]; /* Temporary OID string */ + unsigned i; /* Looping var */ + char temp[1024]; /* Temporary OID string */ (void)data; |