summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
62d984e)
So only fail if we actually looked over some entries.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
const struct value_pair *vp;
int i;
const struct value_pair *vp;
int i;
for (i = 0; i < PARSE_MAX_VP; i++) {
vp = &o->posval[i];
if (!vp->ival || vp->ival[0] == '\0')
break;
for (i = 0; i < PARSE_MAX_VP; i++) {
vp = &o->posval[i];
if (!vp->ival || vp->ival[0] == '\0')
break;
if (!strncmp(vp->ival, ptr, strlen(vp->ival))) {
ret = 0;
if (!o->off1)
if (!strncmp(vp->ival, ptr, strlen(vp->ival))) {
ret = 0;
if (!o->off1)