changed, thus keeping the modified indicator correct and avoiding
early bailout when editing a gpt partition w/o changing the type.
-/* $OpenBSD: cmd.c,v 1.113 2021/06/13 14:39:05 krw Exp $ */
+/* $OpenBSD: cmd.c,v 1.114 2021/06/13 15:32:36 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
if (memcmp(gg, &oldgg, sizeof(*gg)))
return (CMD_DIRTY);
+ else
+ return (CMD_CLEAN);
done:
*gg = oldgg;
if (memcmp(gg, &oldgg, sizeof(*gg)))
return (CMD_DIRTY);
+ else
+ return (CMD_CLEAN);
done:
*gg = oldgg;