Commit ca74caba authored by Miguel Jimenez Lopez's avatar Miguel Jimenez Lopez

Fix wr-dio-ruler tool.

parent 99232716
......@@ -244,8 +244,8 @@ static int ruler_wait_event(int inch, struct timespec *ts)
ruler_cmd.flags = WR_DIO_F_WAIT;
ruler_cmd.channel = inch;
if (ioctl(ruler_sock, PRIV_MEZZANINE_CMD, (unsigned long)&ruler_cmd) < 0 ) {
fprintf(stderr, "%s: ioctl(PRIV_MEZZANINE_CMD(%s)): "
if (ioctl(ruler_fd_dio, PRIV_MEZZANINE_CMD, (unsigned long)&ruler_cmd) < 0 ) {
fprintf(stderr, "%s: A ioctl(PRIV_MEZZANINE_CMD(%s)): "
"%s\n", ruler_prgname, ruler_dio_name, strerror(errno));
return -1;
}
......@@ -296,7 +296,7 @@ static int ruler_run_actions(int nact, struct timespec *ts,
}
/* local */
if (ioctl(ruler_sock, PRIV_MEZZANINE_CMD, (unsigned long) &f.cmd) < 0) {
if (ioctl(ruler_fd_dio, PRIV_MEZZANINE_CMD, (unsigned long) &f.cmd) < 0) {
fprintf(stderr, "%s: ioctl(PRIV_MEZZANINE_CMD(%s)): "
"%s\n", ruler_prgname, ruler_dio_name,
strerror(errno));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment