aboutsummaryrefslogtreecommitdiffstats
path: root/util/ttyio.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-10-08 15:20:58 +0000
committerWerner Koch <[email protected]>2003-10-08 15:20:58 +0000
commitfcbd46e0708586cf4412384f27189ab0241da03a (patch)
tree62329e5d5a7804f5c305fac76ce32bf931e85133 /util/ttyio.c
parent* primegen.c (gen_prime): Bail out if NBITS is zero. This is (diff)
downloadgnupg-fcbd46e0708586cf4412384f27189ab0241da03a.tar.gz
gnupg-fcbd46e0708586cf4412384f27189ab0241da03a.zip
(tty_print_string, tty_print_utf8_string2)
(tty_print_utf8_string): Made string arg const.
Diffstat (limited to 'util/ttyio.c')
-rw-r--r--util/ttyio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/ttyio.c b/util/ttyio.c
index e68c92b17..076ab7c67 100644
--- a/util/ttyio.c
+++ b/util/ttyio.c
@@ -268,7 +268,7 @@ tty_fprintf (FILE *fp, const char *fmt, ... )
* Print a string, but filter all control characters out.
*/
void
-tty_print_string( byte *p, size_t n )
+tty_print_string( const byte *p, size_t n )
{
if (no_terminal)
return;
@@ -306,7 +306,7 @@ tty_print_string( byte *p, size_t n )
}
void
-tty_print_utf8_string2( byte *p, size_t n, size_t max_n )
+tty_print_utf8_string2 (const byte *p, size_t n, size_t max_n )
{
size_t i;
char *buf;
@@ -337,7 +337,7 @@ tty_print_utf8_string2( byte *p, size_t n, size_t max_n )
}
void
-tty_print_utf8_string( byte *p, size_t n )
+tty_print_utf8_string( const byte *p, size_t n )
{
tty_print_utf8_string2( p, n, 0 );
}