All pastes #611079 Raw Edit

Miscellany

public text v1 · immutable
#611079 ·published 2007-07-09 19:27 UTC
rendered paste body
--- emc2/src/emc/ini/initraj.cc	2007-07-09 15:26:30.000000000 -0400
+++ emc2/src/emc/ini/initraj.cc.old	2007-07-09 14:32:32.000000000 -0400
@@ -84,7 +84,6 @@
     char home[LINELEN];
     EmcPose homePose = { {0.0, 0.0, 0.0}, 0.0, 0.0, 0.0 };
     double d;
-    int iniretval;
 
     if (NULL != (inistring = trajInifile->find("AXES", "TRAJ"))) {
 	if (1 == sscanf(inistring, "%d", &axes)) {
@@ -104,9 +103,9 @@
 	}
 	axes = 0;		// default
     }
-    if (0 != (iniretval=emcTrajSetAxes(axes))) {
+    if (0 != emcTrajSetAxes(axes)) {
 	if (EMC_DEBUG & EMC_DEBUG_CONFIG) {
-	    rcs_print("bad return value from emcTrajSetAxes: %d\n",iniretval);
+	    rcs_print("bad return value from emcTrajSetAxes\n");
 	}
 	return -1;
     }