Age | Commit message (Collapse) | Author | Files | Lines |
|
Found by using:
codespell --builtin clear,rare,usage,informal,code,names
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
The contents of pattern are simply copied to the request sent to
the font server and never touched again, so can be labeled read-only.
Fixes compiler warning building xfsinfo:
xfsinfo.c: In function ‘print_catalogue_info’:
xfsinfo.c:158:5: warning: passing argument 2 of ‘FSListCatalogues’ discards
‘const’ qualifier from pointer target type [enabled by default]
char **cats = FSListCatalogues(svr, "*", 1000, &n);
^
In file included from xfsinfo.c:66:0:
FSlib.h:255:16: note: expected ‘char *’ but argument is of type ‘const char *’
extern char ** FSListCatalogues ( FSServer *svr, char *pattern,
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Since we build with -export-symbols-regex '^FS.*', it wasn't available
to callers outside libFS, and was never called by anything inside libFS.
Seems to have been imported from XlibInt.c without ever being used.
The _FSserver fields that it used (and nothing else did) are replaced
with "unused" placeholders to maintain struct layout/size.
Flagged by cppcheck 1.62:
[FSlibInt.c:973]: (style) The function '_FSAllocScratch' is never used.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
|
|
Needed to fix gcc -Wwrite-strings warnings in clients such as fslsfonts
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Almost matches the current versions of the XOpenDisplay & XDisplayName
functions they're modeled on - unlike XDisplayName, FSServerName now
returns const char * as well so we don't lose the constness of the
string passed in if we return it.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}'
git diff -w & git diff -b show no diffs from this change
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Matches the code in libX11/src/ErrDes.c this is based on.
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|