Fix a badly applied patch (actually, non-applied because --dry-run was set)

This commit is contained in:
Gregory Nutt 2013-11-04 11:36:16 -06:00
parent b33123a8f7
commit 4dec2e4b27

View File

@ -1085,7 +1085,7 @@ retry:
{
/* Mark this entry as released */
hdr.flags = (uint8_t~MTD_ERASED_FLAGS;
hdr.flags = (uint8_t)~MTD_ERASED_FLAGS;
mtdconfig_writebytes(dev, offset, &hdr.flags, sizeof(hdr.flags));
}