1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Low-hanging fruit: Fix most warnings in lib/DtSearch.

Most of these are related to missing includes and prototypes as well as
parens/braces.  A few are also potential 64bit issues.
This commit is contained in:
Pascal Stumpf 2012-08-12 18:51:53 +02:00 committed by Jon Trulson
parent 0bbd4ff9aa
commit a1cbcd24db
89 changed files with 181 additions and 33 deletions

View file

@ -156,6 +156,8 @@ typedef struct prule_t {
char is_last_rule; /* '$' terminate or '>' continue algorithm */
} PRULE;
char *ensure_end_slash (char *pathstr);
void unload_jpn_language (DBLK *dblk);
/************************************************/
/* */
@ -389,7 +391,7 @@ char *teskey_parser (PARG *parg)
READ_ANOTHER_WORD:
outp = outbuf;
tpstate = BETW_WORDS;
while (*outp = cofunction (cofunction_arg)) {
while ((*outp = cofunction (cofunction_arg))) {
readcount++;
cofunction_arg = NULL;
@ -421,7 +423,7 @@ READ_ANOTHER_WORD:
* Otherwise discard just like non_concord.
*/
outp++;
if (*outp = cofunction(NULL))
if ((*outp = cofunction(NULL)))
readcount++;
if ((charmap[*outp] & CONCORDABLE) != 0) {
*outp = charmap[*outp] & 0x00ff;
@ -476,7 +478,7 @@ READ_ANOTHER_WORD:
}
/* Must be opt_concord... */
outp++;
if (*outp = cofunction(NULL))
if ((*outp = cofunction(NULL)))
readcount++;
if ((charmap[*outp] & CONCORDABLE) != 0) {
if (outp < endmaxword) {