The second argument to agwrite is a void*, to which other pointers implicitly
coerce.
return 0;
}
- ret = agwrite(graph, (void *) output_file);
+ ret = agwrite(graph, output_file);
fclose (output_file);
if (ret) {
g_print("%s successfully saved \n", fileName);
case FORMAT_DOT:
case FORMAT_CANON:
if (!(job->flags & OUTPUT_NOT_REQUIRED))
- agwrite(g, (FILE*)job);
+ agwrite(g, job);
break;
case FORMAT_XDOT:
case FORMAT_XDOT12:
case FORMAT_XDOT14:
xdot_end_graph(g);
if (!(job->flags & OUTPUT_NOT_REQUIRED))
- agwrite(g, (FILE*)job);
+ agwrite(g, job);
break;
}
g->clos->disc.io = io_save;