[BACK]Return to snmpc.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / snmp

Diff for /src/usr.bin/snmp/snmpc.c between version 1.30 and 1.31

version 1.30, 2020/09/14 15:12:27 version 1.31, 2020/12/02 15:45:51
Line 788 
Line 788 
         if (version == SNMP_V1)          if (version == SNMP_V1)
                 errx(1, "trap is not supported for snmp v1");                  errx(1, "trap is not supported for snmp v1");
   
           if (argc < 3)
                   usage();
   
         if ((agent = snmpc_connect(argv[0], "162")) == NULL)          if ((agent = snmpc_connect(argv[0], "162")) == NULL)
                 err(1, "%s", snmp_app->name);                  err(1, "%s", snmp_app->name);
   

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31