blob: a247efd010578f7b8481376711f8ceebf3029a1a (
plain) (
tree)
|
|
/* See LICENSE file for copyright and license details. */
#include "common.h"
void
libpatch_reverse_diff2(struct libpatch_diff2 *diff, size_t difflen)
{
size_t i;
for (i = 0; i < difflen; i++) {
if (diff[i].change == 1)
diff[i].change = 2;
else if (diff[i].change == 2)
diff[i].change = 1;
}
}
|