|
@@ -121,8 +121,8 @@ main (int argc, char **argv)
|
|
|
HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY);
|
|
HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY);
|
|
|
|
|
|
|
|
/* get the command to run */
|
|
/* get the command to run */
|
|
|
- sprintf (command_line, "%s -OQa -m : -v 1 -c %s %s:%hd %s", PATH_TO_SNMPGET, community,
|
|
|
|
|
- address, port, query_string);
|
|
|
|
|
|
|
+ sprintf (command_line, "%s -OQa -m : -v 1 -c %s %s:%hd %s",
|
|
|
|
|
+ PATH_TO_SNMPGET, community, address, (short)port, query_string);
|
|
|
|
|
|
|
|
/* run the command */
|
|
/* run the command */
|
|
|
child_process = spopen (command_line);
|
|
child_process = spopen (command_line);
|