diff --git a/mercurial/mpatch.c b/mercurial/mpatch.c --- a/mercurial/mpatch.c +++ b/mercurial/mpatch.c @@ -67,7 +67,7 @@ static int gather(struct flist *dest, st while (s != src->tail) { if (s->start + offset >= cut) - goto exit; /* we've gone far enough */ + break; /* we've gone far enough */ postend = offset + s->start + s->len; if (postend <= cut) { @@ -95,11 +95,10 @@ static int gather(struct flist *dest, st s->len = s->len - l; s->data = s->data + l; - goto exit; + break; } } - exit: dest->tail = d; src->head = s; return offset; @@ -113,7 +112,7 @@ static int discard(struct flist *src, in while (s != src->tail) { if (s->start + offset >= cut) - goto exit; + break; postend = offset + s->start + s->len; if (postend <= cut) { @@ -133,11 +132,10 @@ static int discard(struct flist *src, in s->len = s->len - l; s->data = s->data + l; - goto exit; + break; } } - exit: src->head = s; return offset; }