light: fix typo in replay link comparison

This commit is contained in:
Thomas Schoebel-Theuer 2016-02-29 14:20:47 +01:00
parent a312e3d93b
commit 42c2dc98da
1 changed files with 2 additions and 2 deletions

View File

@ -1061,9 +1061,9 @@ int compare_replaylinks(struct mars_rotate *rot, const char *hosta, const char *
MARS_ERR_TO(rot->log_say, "replay link '%s' -> '%s' is malformed\n", linkb, b);
}
if (posa < posb) {
if (offa < offb) {
res = -1;
} else if (posa > posb) {
} else if (offa > offb) {
res = 1;
} else {
res = 0;