All pastes #611046 Raw Edit

Miscellany

public text v1 · immutable
#611046 ·published 2007-07-09 19:17 UTC
rendered paste body
--- emc2/src/emc/ini/initraj.cc.new	2007-07-09 15:12:57.000000000 -0400
+++ emc2/src/emc/ini/initraj.cc	2006-10-05 21:23:54.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;
     }