From: Oliver Kurth Date: Mon, 20 Aug 2018 19:48:09 +0000 (-0700) Subject: Back out previous change to powerOps.c X-Git-Tag: stable-11.0.0~459 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fe529b678a0de7a2016b27047da844bde30e7a6;p=thirdparty%2Fopen-vm-tools.git Back out previous change to powerOps.c --- diff --git a/open-vm-tools/services/plugins/powerOps/powerOps.c b/open-vm-tools/services/plugins/powerOps/powerOps.c index 496965da2..3f7a1bf92 100644 --- a/open-vm-tools/services/plugins/powerOps/powerOps.c +++ b/open-vm-tools/services/plugins/powerOps/powerOps.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2008-2016,2018 VMware, Inc. All rights reserved. + * Copyright (C) 2008-2016 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -177,8 +177,6 @@ PowerOpsStateChangeDone(PowerOpState *state, gboolean success) { gchar *msg; - char *reply = NULL; - size_t repLen = 0; g_debug("State change complete, success = %d.\n", success); @@ -200,13 +198,10 @@ PowerOpsStateChangeDone(PowerOpState *state, msg = g_strdup_printf("tools.os.statechange.status %d %d", success, state->stateChgInProgress); - if (!RpcChannel_Send(state->ctx->rpc, msg, strlen(msg) + 1, - &reply, &repLen)) { - g_warning("Unable to send the status RPC. Reply: '%s', Reply len: '%d'", - (reply != NULL) ? reply : "(null)", repLen); + if (!RpcChannel_Send(state->ctx->rpc, msg, strlen(msg) + 1, NULL, NULL)) { + g_warning("Unable to send the status RPC."); } - RpcChannel_Free(reply); g_free(msg); /* Finally, perform the requested operation. */