diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-11-16 00:47:36 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-11-16 00:47:36 +0000 |
commit | b98e6d247a7d88881c07c7d8a8bb8c8cbd18afb5 (patch) | |
tree | 8c7d7fbd8d6430d30f0133c06f6a07ed2a5b678a /usr.bin | |
parent | 0dc9b4623e64324a3a03461973271e48965aa220 (diff) |
constipate charcost()
from Kamil Rytarowski (n54 (at) gmx.com)
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mg/tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/tty.c b/usr.bin/mg/tty.c index f803cc7a7ed..059389038bd 100644 --- a/usr.bin/mg/tty.c +++ b/usr.bin/mg/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.30 2008/09/15 16:11:35 kjell Exp $ */ +/* $OpenBSD: tty.c,v 1.31 2014/11/16 00:47:35 guenther Exp $ */ /* This file is in the public domain. */ @@ -35,7 +35,7 @@ #include <term.h> -static int charcost(char *); +static int charcost(const char *); static int cci; static int insdel; /* Do we have both insert & delete line? */ @@ -438,7 +438,7 @@ fakec(int c) /* calculate the cost of doing string s */ static int -charcost(char *s) +charcost(const char *s) { cci = 0; |