On Monday 24 November 2014 13:44:11 Hu Tao wrote:
> > > + if (sscanf (out, "ID %" SCNi32, &r) != 1) {
> >
> > It would be simplier to just use xstrtol to parse the output.
>
> Then we should skip "ID " firstly.Right (got focused on the integer parsing, and lost track of the "ID " prefix). Then I guess sscanf could stay as you wrote it. -- Pino Toscano _______________________________________________ Libguestfs mailing list [email protected] https://www.redhat.com/mailman/listinfo/libguestfs
