From: Tiago Cunha Date: Thu, 24 May 2012 20:49:39 +0000 (+0100) Subject: Sprinkle some const. X-Git-Tag: SPECTRWM_1_1_0~16 X-Git-Url: https://code.delx.au/spectrwm/commitdiff_plain/9fc72f5c49ab3fdb79776b244ddd45f24132c266 Sprinkle some const. --- diff --git a/spectrwm.c b/spectrwm.c index 2852769..116486a 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -1304,7 +1304,7 @@ socket_setnonblock(int fd) } void -bar_print(struct swm_region *r, char *s) +bar_print(struct swm_region *r, const char *s) { int x = 0; size_t len; @@ -1429,7 +1429,7 @@ bar_workspace_name(char *s, size_t sz, struct swm_region *r) /* build the default bar format according to the defined enabled options */ void -bar_fmt(char *fmtexp, char *fmtnew, struct swm_region *r, size_t sz) +bar_fmt(const char *fmtexp, char *fmtnew, struct swm_region *r, size_t sz) { /* if format provided, just copy the buffers */ if (bar_format != NULL) {