Cast the NULL argument of straconcat to unsigned char *.
commit7645a836fc365982140f0bc5746d7d9da7994c06
authorKalle Olavi Niemitalo <kon@iki.fi>
Sun, 11 Mar 2007 10:59:11 +0000 (11 12:59 +0200)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Sun, 11 Mar 2007 10:59:11 +0000 (11 12:59 +0200)
treea365e195bf6e1af22e3e2c48e415d1e8d4c00dcc
parent22af2b22e2d6eb252ece2f60ef40e92c45fbc027
Cast the NULL argument of straconcat to unsigned char *.

straconcat reads the args with va_arg(ap, const unsigned char *),
and the NULL macro may have the wrong type (e.g. int).

Many places pass string literals of type char * to straconcat.  This
is in principle also a violation, but I'm ignoring it for now because
if it becomes a problem with some C implementation, then so will the
use of unsigned char * with printf "%s", which is so widespread in
ELinks that I'm not going to try fixing it now.
30 files changed:
src/bfu/inphist.c
src/bfu/listmenu.c
src/bookmarks/backend/common.c
src/config/conf.c
src/config/dialogs.c
src/config/home.c
src/config/kbdbind.c
src/cookies/cookies.c
src/cookies/dialogs.c
src/dialogs/status.c
src/document/html/parser/link.c
src/document/html/renderer.c
src/document/plain/renderer.c
src/ecmascript/ecmascript.c
src/formhist/formhist.c
src/globhist/globhist.c
src/mime/mime.c
src/osdep/newwin.c
src/protocol/data.c
src/protocol/file/file.c
src/protocol/http/http.c
src/scripting/guile/core.c
src/scripting/lua/core.c
src/scripting/ruby/core.c
src/scripting/smjs/core.c
src/util/file.c
src/util/secsave.c
src/util/string.h
src/viewer/text/form.c
src/viewer/text/textarea.c