changeset 313:d6a9db84d702

Constify.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 22 Feb 2016 22:51:24 +0200
parents f1dfabd89a13
children 7bce1e9fa397
files th_string.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/th_string.c	Mon Feb 22 22:10:52 2016 +0200
+++ b/th_string.c	Mon Feb 22 22:51:24 2016 +0200
@@ -129,7 +129,7 @@
 {
     if (f_width > 0 && (f_flags & TH_PF_LEFT) == 0)
     {
-        char pad = (f_flags & TH_PF_ZERO) ? '0' : ' ';
+        const char pad = (f_flags & TH_PF_ZERO) ? '0' : ' ';
         while (f_width--)
         {
             int ret;
@@ -146,7 +146,7 @@
 {
     if (f_width > 0 && (f_flags & TH_PF_LEFT))
     {
-        char pad = ' ';
+        const char pad = ' ';
         while (f_width--)
         {
             int ret;