]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/testsnmp.c
Import CUPS 1.4svn-r7356.
[thirdparty/cups.git] / cups / testsnmp.c
index e13b238470e0b7d1f3db6bd4a589b50f7105c5c3..eb47254a1d686079024f816080929874004d28d7 100644 (file)
@@ -268,7 +268,7 @@ show_oid(int         fd,            /* I - SNMP socket */
       printf(".%d", oid[i]);
     puts("):");
 
-    if (cupsSNMPWalk(fd, addr, CUPS_SNMP_VERSION_1, community, oid, 5000,
+    if (cupsSNMPWalk(fd, addr, CUPS_SNMP_VERSION_1, community, oid, 5.0,
                      print_packet, NULL) < 0)
     {
       printf("FAIL (%s)\n", strerror(errno));
@@ -291,9 +291,9 @@ show_oid(int         fd,            /* I - SNMP socket */
 
     puts("PASS");
 
-    fputs("cupsSNMPRead(5000): ", stdout);
+    fputs("cupsSNMPRead(5.0): ", stdout);
 
-    if (!cupsSNMPRead(fd, &packet, 5000))
+    if (!cupsSNMPRead(fd, &packet, 5.0))
     {
       puts("FAIL (timeout)");
       return (0);