diff options
author | NIIBE Yutaka <[email protected]> | 2017-04-12 05:47:30 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2017-04-12 05:47:30 +0000 |
commit | 7b4edf14bb16fbe786e55b829a208960396ce8df (patch) | |
tree | 96cb9123e8f42a7400143e27b3fd301f8bdb1acf /common/stringhelp.h | |
parent | gpgscm: Fix test program. (diff) | |
download | gnupg-7b4edf14bb16fbe786e55b829a208960396ce8df.tar.gz gnupg-7b4edf14bb16fbe786e55b829a208960396ce8df.zip |
common: Simplify format_text.
* common/stringhelp.c (format_text): Don't allow IN_PLACE formatting.
* common/stringhelp.h: Change the API with no IN_PLACE.
* common/t-stringhelp.c (test_format_text): Follow the change.
* g10/gpgcompose.c (show_help): Likewise.
* g10/tofu.c (format_conflict_msg_part1, ask_about_binding)
(show_statistics, show_warning): Likewise.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/stringhelp.h')
-rw-r--r-- | common/stringhelp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/stringhelp.h b/common/stringhelp.h index 3852d0fe3..a643f359f 100644 --- a/common/stringhelp.h +++ b/common/stringhelp.h @@ -155,7 +155,7 @@ int split_fields (char *string, char **array, int arraysize); int compare_version_strings (const char *my_version, const char *req_version); /* Format a string so that it fits within about TARGET_COLS columns. */ -char *format_text (char *text, int in_place, int target_cols, int max_cols); +char *format_text (const char *text, int target_cols, int max_cols); /*-- mapstrings.c --*/ |