>> #define SOMEPREFIX "sensors_temp_cu-" >> then >> hud_sensors_temp_graph_install(pane, &name[sizeof(SOMEPREFIX - 1)] >> >> Or, have I misunderstood your comment? > > > Thanks for explaining. But why not do this? > > else if (sscanf(name, "sensors_temp_cu-%s", arg_name) == 1) { > hud_sensors_temp_graph_install(pane, arg_name, ... > > as you did in other places?
Ahh, I did indeed misunderstand your comment. You are correct, an obvious oversight on my part. I've taken care of it this morning. -- Steven Toth - Kernel Labs http://www.kernellabs.com _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev