From 9fc72f5c49ab3fdb79776b244ddd45f24132c266 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Thu, 24 May 2012 21:49:39 +0100 Subject: [PATCH] Sprinkle some const. --- spectrwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 1.7.10.4