aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2015-02-14 21:36:48 +0800
committerkwm <kwm@FreeBSD.org>2015-02-14 21:36:48 +0800
commit87da54a97f7112ac45e4dc04dae9a2d44240a2d9 (patch)
treef44aaed070b9c7f709e751e0e918b4c7a781d95c /emulators
parent2292932c740fc7714b4faf6eb429fbb1ee5c18ca (diff)
downloadfreebsd-ports-gnome-87da54a97f7112ac45e4dc04dae9a2d44240a2d9.tar.gz
freebsd-ports-gnome-87da54a97f7112ac45e4dc04dae9a2d44240a2d9.tar.zst
freebsd-ports-gnome-87da54a97f7112ac45e4dc04dae9a2d44240a2d9.zip
Fix build with clang 3.5.0.
PR: 196108 Submitted by: dim@ Approved by: maintainer (via IRC)
Diffstat (limited to 'emulators')
-rw-r--r--emulators/open-vm-tools/files/patch-toolbox__toolboxcmd-shrink.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/emulators/open-vm-tools/files/patch-toolbox__toolboxcmd-shrink.c b/emulators/open-vm-tools/files/patch-toolbox__toolboxcmd-shrink.c
new file mode 100644
index 000000000000..504edf0267c5
--- /dev/null
+++ b/emulators/open-vm-tools/files/patch-toolbox__toolboxcmd-shrink.c
@@ -0,0 +1,11 @@
+--- toolbox/toolboxcmd-shrink.c.orig 2013-09-23 17:51:10.000000000 +0200
++++ toolbox/toolboxcmd-shrink.c 2014-11-25 17:57:44.000000000 +0100
+@@ -391,7 +391,7 @@ ShrinkDoWipeAndShrink(char *mountPoint,
+ * Verify that wiping/shrinking are permitted before going through with the
+ * wiping operation.
+ */
+- if (!ShrinkGetWiperState() == WIPER_ENABLED && !Wiper_IsWipeSupported(part)) {
++ if (ShrinkGetWiperState() != WIPER_ENABLED && !Wiper_IsWipeSupported(part)) {
+ g_debug("%s cannot be wiped / shrunk\n", mountPoint);
+ ToolsCmd_PrintErr("%s",
+ SU_(disk.shrink.disabled, SHRINK_DISABLED_ERR));