=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/tty.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- src/usr.bin/mg/tty.c 2008/09/15 16:11:35 1.30 +++ src/usr.bin/mg/tty.c 2014/11/16 00:47:35 1.31 @@ -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 -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 @@ /* calculate the cost of doing string s */ static int -charcost(char *s) +charcost(const char *s) { cci = 0;