xserver/os
Adam Jackson aabf65d2a0 os: Fix warning in LockServer
The meson build gives me:

../os/utils.c: In function ‘LockServer’:
../os/utils.c:310:40: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
     snprintf(pid_str, sizeof(pid_str), "%10ld\n", (long) getpid());
                                        ^~~~~~~~~
../os/utils.c:310:5: note: ‘snprintf’ output between 12 and 13 bytes into a destination of size 12
     snprintf(pid_str, sizeof(pid_str), "%10ld\n", (long) getpid());
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Which seems to be due to the %d part meaning that a negative number's -
sign would be one wider than we're expecting. Fine, just coerce it to
unsigned.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-08-30 15:53:04 -04:00
..
.gitignore
Makefile.am os,dix: Depend custom libs on libs, not objects 2017-01-02 12:45:28 -05:00
WaitFor.c os: return 0 from check_timers if we touched any of them 2017-01-02 14:11:11 -05:00
access.c
auth.c os: make GenerateRandomData() independent of XCSECURITY 2017-08-22 10:59:40 -04:00
backtrace.c
busfault.c os: Fix iteration over busfaults 2017-02-23 09:20:48 +10:00
client.c DetermineClientCmd: try using /proc/pid/cmdline on Solaris too 2017-02-14 11:33:47 -05:00
connection.c os: Set oc->fd to -1 when connection is closed 2017-06-13 09:56:44 -04:00
inputthread.c os: log a bug whenever WriteToClient is called from the input thread 2017-02-27 09:25:08 +10:00
io.c os: Check oc->trans_conn before using oc->fd in YieldControlNoInput 2017-06-13 09:56:41 -04:00
log.c
meson.build meson: Only detect each function once 2017-05-10 15:08:25 -04:00
mitauth.c os: make MitGenerateCookie() independent of XCSECURITY 2017-08-22 10:59:40 -04:00
oscolor.c
osdep.h os: Use CloseDownFileDescriptor from AbortClient, including ospoll_remove 2017-06-13 09:56:34 -04:00
osinit.c os: Handle SIGABRT 2017-04-26 16:07:19 -04:00
ospoll.c meson: Fix epoll detection 2017-08-14 13:34:11 -07:00
ospoll.h
reallocarray.c
rpcauth.c auth: remove AuthToIDFunc and associated functions. Not used anymore. 2017-02-28 14:15:19 -05:00
strcasecmp.c
strcasestr.c
strlcat.c
strlcpy.c
strndup.c
timingsafe_memcmp.c timingsafe_memcmp: Fix meson build 2017-05-10 10:56:16 -04:00
utils.c os: Fix warning in LockServer 2017-08-30 15:53:04 -04:00
xdmauth.c auth: remove AuthToIDFunc and associated functions. Not used anymore. 2017-02-28 14:15:19 -05:00
xdmcp.c os: Switch server to poll(2) [v3] 2016-07-21 15:04:47 -04:00
xprintf.c
xserver_poll.c
xsha1.c
xstrans.c