per Jeremy Huddleston's patch, fix compilation problem caused by

break_line()'s returning int when it should return ssize_t according to
its prototype


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2155 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2004-12-02 17:37:09 +00:00
parent c0e42bd3c5
commit fc54d6e431
2 changed files with 5 additions and 1 deletions

View File

@ -55,6 +55,10 @@ CVS code -
display "UnJustify" in the shortcut list anymore. (DLR) display "UnJustify" in the shortcut list anymore. (DLR)
do_wrap() do_wrap()
- Make wrap_loc and word_back ssize_t's, to match fill. (DLR) - Make wrap_loc and word_back ssize_t's, to match fill. (DLR)
break_line()
- Fix compilation problem caused by its returning int when it
should return ssize_t according to its prototype. (Jeremy
Huddleston)
do_justify() do_justify()
- For consistency, preserve placewewant if we didn't unjustify - For consistency, preserve placewewant if we didn't unjustify
instead of setting it to 0. (DLR) instead of setting it to 0. (DLR)

View File

@ -2572,7 +2572,7 @@ bool breakable(const char *line, ssize_t goal)
* such space, and force is TRUE, then we find the first space. Anyway, * such space, and force is TRUE, then we find the first space. Anyway,
* we then take the last space in that group of spaces. The terminating * we then take the last space in that group of spaces. The terminating
* '\0' counts as a space. */ * '\0' counts as a space. */
int break_line(const char *line, ssize_t goal, bool force) ssize_t break_line(const char *line, ssize_t goal, bool force)
{ {
ssize_t space_loc = -1; ssize_t space_loc = -1;
/* Current tentative return value. Index of the last space we /* Current tentative return value. Index of the last space we