/* Next job is to parse the command and flags. */
q = v[1].buf; p = q; q += strcspn(q, "/"); if (*q) *q++ = 0;
for (op = optab; op->name; op++)
/* Next job is to parse the command and flags. */
q = v[1].buf; p = q; q += strcspn(q, "/"); if (*q) *q++ = 0;
for (op = optab; op->name; op++)
rc = op->op(ctx, f, src, dest, sz);
/* Check we got the right answer. */
rc = op->op(ctx, f, src, dest, sz);
/* Check we got the right answer. */
- ok = (rc == rcref && (!destref || !memcmp(dest, destref, sz)));
+ ok = (rc == rcref && (!destref || MEMCMP(dest, ==, destref, sz)));