diff options
author | Christoph Gysin <christoph.gysin@gmail.com> | 2015-11-25 16:53:02 +0200 |
---|---|---|
committer | Christoph Gysin <christoph.gysin@gmail.com> | 2015-11-25 21:00:23 +0200 |
commit | 78c2e293282d20a2627f68a5b2921b2066ade2a3 (patch) | |
tree | cbacfd394339221faa91eb3f25d5c0b881abbc0e /swaybg/main.c | |
parent | Merge pull request #251 from sce/criteria_1 (diff) | |
download | sway-78c2e293282d20a2627f68a5b2921b2066ade2a3.tar.gz sway-78c2e293282d20a2627f68a5b2921b2066ade2a3.tar.zst sway-78c2e293282d20a2627f68a5b2921b2066ade2a3.zip |
swaybg: make argv const
Diffstat (limited to 'swaybg/main.c')
-rw-r--r-- | swaybg/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swaybg/main.c b/swaybg/main.c index 5a12eec6..e6510800 100644 --- a/swaybg/main.c +++ b/swaybg/main.c | |||
@@ -23,7 +23,7 @@ void sway_terminate(void) { | |||
23 | exit(1); | 23 | exit(1); |
24 | } | 24 | } |
25 | 25 | ||
26 | int main(int argc, char **argv) { | 26 | int main(int argc, const char **argv) { |
27 | init_log(L_INFO); | 27 | init_log(L_INFO); |
28 | surfaces = create_list(); | 28 | surfaces = create_list(); |
29 | registry = registry_poll(); | 29 | registry = registry_poll(); |
@@ -49,7 +49,7 @@ int main(int argc, char **argv) { | |||
49 | desktop_shell_set_background(registry->desktop_shell, output->output, window->surface); | 49 | desktop_shell_set_background(registry->desktop_shell, output->output, window->surface); |
50 | list_add(surfaces, window); | 50 | list_add(surfaces, window); |
51 | 51 | ||
52 | char *scaling_mode = argv[3]; | 52 | const char *scaling_mode = argv[3]; |
53 | cairo_surface_t *image = cairo_image_surface_create_from_png(argv[2]); | 53 | cairo_surface_t *image = cairo_image_surface_create_from_png(argv[2]); |
54 | double width = cairo_image_surface_get_width(image); | 54 | double width = cairo_image_surface_get_width(image); |
55 | double height = cairo_image_surface_get_height(image); | 55 | double height = cairo_image_surface_get_height(image); |