diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-03-25 22:29:08 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-03-25 22:29:08 +0200 |
commit | 1d4e6c35d72d3c08f390f9ecbc1f881556650bed (patch) | |
tree | 7bf637bc48f77e41db6121034418a1d686954d28 | |
parent | 868fa1688edaaa48696f59d3fafe44dc9afcb940 (diff) | |
download | ayatana-indicator-power-1d4e6c35d72d3c08f390f9ecbc1f881556650bed.tar.gz ayatana-indicator-power-1d4e6c35d72d3c08f390f9ecbc1f881556650bed.tar.bz2 ayatana-indicator-power-1d4e6c35d72d3c08f390f9ecbc1f881556650bed.zip |
src/flashlight.c: Cast char* from const char* when assigning flash_sysfs_path.
-rw-r--r-- | src/flashlight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flashlight.c b/src/flashlight.c index 63553e5..08ad884 100644 --- a/src/flashlight.c +++ b/src/flashlight.c @@ -38,7 +38,7 @@ set_sysfs_path() { for (size_t i = 0; i < qcom_sysfs_size; i++) { if (access(qcom_sysfs[i], F_OK ) != -1){ - flash_sysfs_path = qcom_sysfs[i]; + flash_sysfs_path = (char*)qcom_sysfs[i]; return 1; } } |