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:
parent
a4293ed606
commit
fd27919f91
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user