From 16f9b91ae6bd0916b51a7724340299fc2f3e561d Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Mon, 16 Jun 2003 15:42:07 +0000 Subject: [PATCH] Eliminate compiler warnings. --- motorApp/MclennanSrc/drvPM304.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/motorApp/MclennanSrc/drvPM304.cc b/motorApp/MclennanSrc/drvPM304.cc index cc490d1e..ad5cd2d6 100644 --- a/motorApp/MclennanSrc/drvPM304.cc +++ b/motorApp/MclennanSrc/drvPM304.cc @@ -305,7 +305,7 @@ STATIC int set_status(int card, int signal) /* Parse motor velocity? */ /* NEEDS WORK */ - motor_info->velocity = 0.; + motor_info->velocity = 0; if (!(motor_info->status & RA_DIRECTION)) motor_info->velocity *= -1; @@ -319,7 +319,7 @@ STATIC int set_status(int card, int signal) { strcpy(buff, nodeptr->postmsgptr); strcat(buff, "\r"); - send_mess(card, buff, NULL); + send_mess(card, buff, (char) NULL); nodeptr->postmsgptr = NULL; } @@ -593,7 +593,7 @@ STATIC int motor_init() { struct controller *brdptr; struct PM304controller *cntrl; - int card_index, motor_index, arg3, arg4; + int card_index, motor_index; char buff[BUFF_SIZE]; char command[20]; int total_axis = 0;