From 6bd22bd3a375495855a36d48c2755871d999da66 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 18 Oct 2009 20:35:52 +0200 Subject: [PATCH] hscroll: pass const strings to strscroll() --- src/hscroll.c | 3 ++- src/hscroll.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 -- 2.30.2