From: Max Kellermann Date: Sun, 18 Oct 2009 18:35:52 +0000 (+0200) Subject: hscroll: pass const strings to strscroll() X-Git-Tag: release-0.16~78 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6bd22bd3a375495855a36d48c2755871d999da66;p=ncmpc.git hscroll: pass const strings to strscroll() --- diff --git a/src/hscroll.c b/src/hscroll.c index 372e148..00bda79 100644 --- a/src/hscroll.c +++ b/src/hscroll.c @@ -24,7 +24,8 @@ #include char * -strscroll(struct hscroll *hscroll, char *str, char *separator, unsigned width) +strscroll(struct hscroll *hscroll, const char *str, const char *separator, + unsigned width) { gchar *tmp, *buf; gsize len, size; diff --git a/src/hscroll.h b/src/hscroll.h index fadbae9..d266c8a 100644 --- a/src/hscroll.h +++ b/src/hscroll.h @@ -39,6 +39,7 @@ hscroll_step(struct hscroll *hscroll) } char * -strscroll(struct hscroll *hscroll, char *str, char *separator, unsigned width); +strscroll(struct hscroll *hscroll, const char *str, const char *separator, + unsigned width); #endif