1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

add_format_to_string: Let format point to const.

This commit is contained in:
Kalle Olavi Niemitalo 2007-01-28 02:05:52 +02:00 committed by Kalle Olavi Niemitalo
parent a4293ed606
commit fd27919f91
2 changed files with 2 additions and 2 deletions

View File

@ -434,7 +434,7 @@ add_xchar_to_string(struct string *string, unsigned char character, int times)
/* Add printf-like format string to @string. */
struct string *
add_format_to_string(struct string *string, unsigned char *format, ...)
add_format_to_string(struct string *string, const unsigned char *format, ...)
{
int newlength;
int width;

View File

@ -174,7 +174,7 @@ struct string *string_concat(struct string *string, ...);
struct string *add_xchar_to_string(struct string *string, unsigned char character, int times);
/* Add printf-style format string to @string. */
struct string *add_format_to_string(struct string *string, unsigned char *format, ...);
struct string *add_format_to_string(struct string *string, const unsigned char *format, ...);
/* Get a regular newly allocated stream of bytes from @string. */
static unsigned char *squeezastring(struct string *string);