diff options
author | Anish Sane <asane@nvidia.com> | 2017-06-27 05:16:43 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2017-07-24 10:19:12 -0700 |
commit | 1ea1f57b1eb23b972efaa1a313c60e7c4c461e1c (patch) | |
tree | 377e1a47cf984942bbbf2bffd46b8d49bb44b07e | |
parent | b5f078e4e0208c98bbfbf2e9882504c484a00260 (diff) |
Fix data pointer passed to dbus_message_iter_get_basic call in nvidia-settings
Currently we pass &status as the data pointer to dbus_message_iter_get_basic call.
'status' is already of the type (gint *).
This commit changes the call so that it passes pStatus directly.
It also changes the name of the variable to pStatus to avoid any confusion.
-rw-r--r-- | src/gtk+-2.x/ctkgridlicense.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gtk+-2.x/ctkgridlicense.c b/src/gtk+-2.x/ctkgridlicense.c index e9f117a..9bda9ff 100644 --- a/src/gtk+-2.x/ctkgridlicense.c +++ b/src/gtk+-2.x/ctkgridlicense.c @@ -639,7 +639,7 @@ dbus_end: static gboolean send_message_to_gridd(CtkManageGridLicense *ctk_manage_grid_license, gint param, - gint *status) + gint *pStatus) { gboolean ret = FALSE; @@ -699,7 +699,7 @@ send_message_to_gridd(CtkManageGridLicense *ctk_manage_grid_license, dbusData->dbus.dbusMessageIterGetArgType(&args)) { nv_error_msg("GRID License dbus communication: Argument is not int!\n"); } else { - dbusData->dbus.dbusMessageIterGetBasic(&args, &status); + dbusData->dbus.dbusMessageIterGetBasic(&args, pStatus); } ret = TRUE; |