summaryrefslogtreecommitdiff
path: root/backend/snmp.c
diff options
context:
space:
mode:
authorjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-04-02 15:56:16 +0000
committerjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-04-02 15:56:16 +0000
commitc0e1af835b65e53b4506f37f235c7cdc820dffa8 (patch)
tree02074fc1df79e914b7a6777ab1e6e9e6da1e79ad /backend/snmp.c
parentf42414bf8a43f4c1b464bf1de9d357edba4fd439 (diff)
downloadcups-c0e1af835b65e53b4506f37f235c7cdc820dffa8.tar.gz
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@303 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'backend/snmp.c')
-rw-r--r--backend/snmp.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/backend/snmp.c b/backend/snmp.c
index a269ddaba..0298ee9db 100644
--- a/backend/snmp.c
+++ b/backend/snmp.c
@@ -1,9 +1,9 @@
/*
- * "$Id: snmp.c 6180 2007-01-03 18:19:32Z mike $"
+ * "$Id: snmp.c 6403 2007-03-27 16:00:56Z mike $"
*
* SNMP discovery backend for the Common UNIX Printing System (CUPS).
*
- * Copyright 2006 by Easy Software Products, all rights reserved.
+ * Copyright 2006-2007 by Easy Software Products, all rights reserved.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -312,7 +312,7 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
if (argc > 2)
{
- fputs("Usage: snmp [host-or-ip-address]\n", stderr);
+ fputs(_("Usage: snmp [host-or-ip-address]\n"), stderr);
return (1);
}
@@ -2089,8 +2089,8 @@ read_snmp_response(int fd) /* I - SNMP socket file descriptor */
if (asn1_decode_snmp(buffer, bytes, &packet))
{
- fprintf(stderr, "ERROR: Bad SNMP packet from %s: %s\n", addrname,
- packet.error);
+ fprintf(stderr, "ERROR: Bad SNMP packet from %s: %s\n",
+ addrname, packet.error);
asn1_debug(buffer, bytes, 0);
hex_debug(buffer, bytes);
@@ -2365,7 +2365,8 @@ send_snmp_query(
if (bytes < 0)
{
- fprintf(stderr, "ERROR: Unable to send SNMP query: %s\n", packet.error);
+ fprintf(stderr, "ERROR: Unable to send SNMP query: %s\n",
+ packet.error);
return;
}
@@ -2406,7 +2407,8 @@ try_connect(http_addr_t *addr, /* I - Socket address */
if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0)
{
- fprintf(stderr, "ERROR: Unable to create socket: %s\n", strerror(errno));
+ fprintf(stderr, "ERROR: Unable to create socket: %s\n",
+ strerror(errno));
return (-1);
}
@@ -2459,5 +2461,5 @@ update_cache(snmp_cache_t *device, /* I - Device */
/*
- * End of "$Id: snmp.c 6180 2007-01-03 18:19:32Z mike $".
+ * End of "$Id: snmp.c 6403 2007-03-27 16:00:56Z mike $".
*/