Enrico Weigelt, metux IT consult
71b25119f7
os: ResetHosts(): fix warning on potentially unitialized memory
...
> In function ‘ConvertAddr’,
> inlined from ‘ResetHosts’ at ../os/access.c:1014:26:
> ../os/access.c:1540:25: warning: ‘saddr’ may be used uninitialized [-Wmaybe-uninitialized]
> 1540 | if (16777343 == *(long *) &((struct sockaddr_in *) saddr)->sin_addr)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../os/access.c: In function ‘ResetHosts’:
> ../os/access.c:908:7: note: ‘saddr’ declared here
> 908 | } saddr;
> | ^~~~~
The union isn't needed at all, we're just using one of the fields anyways.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-04 15:10:43 +01:00
..
.gitignore
dix and os: gitignore dix.O and os.O
2011-09-23 17:14:47 -07:00
access.c
os: ResetHosts(): fix warning on potentially unitialized memory
2025-12-04 15:10:43 +01:00
alloc.c
os: unexport XNFreallocarray()
2025-09-29 10:53:15 +02:00
audit_priv.h
os: rename audit.h to audit_priv.h
2025-09-26 15:56:47 +02:00
auth.c
os: Fix builds with -Dxdmcp=false
2025-09-22 12:00:14 +02:00
auth.h
os: move ComputeLocalClient() prototype to auth.h
2025-11-27 10:45:36 +01:00
backtrace.c
os: backtrace: Fix -Wincompatible-pointer-types compiler error on 32-bit targets
2025-02-07 16:58:02 +02:00
bug_priv.h
os: move BUG_*() macros to own private header
2025-02-17 19:32:48 +00:00
busfault.c
drop obsolete HAVE_DIX_CONFIG_H
2024-10-10 13:38:31 +00:00
busfault.h
os: fix missing include of misc.h in busfault.h
2024-04-16 14:19:59 +02:00
client.c
os: use NULL instead of NullClient
2025-07-18 22:24:55 +02:00
client_priv.h
os: drop ResetWellKnownSockets() and XdmcpReset()
2025-11-20 19:22:44 +01:00
cmdline.c
os: helper for parsing an counting-flag or value-flag option
2025-06-12 17:21:46 +02:00
cmdline.h
os: helper for parsing an counting-flag or value-flag option
2025-06-12 17:21:46 +02:00
connection.c
os: move OsCommRec/Ptr and related functions into own header
2025-11-27 19:36:00 +01:00
ddx_priv.h
os: move OsVendorFatalError() and OsVendorInit() to ddx_priv.h
2025-11-27 10:44:58 +01:00
fmt.c
os: move out Format*() functions
2024-03-09 17:34:51 +00:00
fmt.h
os: unexport xstrtokenize()
2025-06-12 17:21:44 +02:00
inputthread.c
os: replace ETEST macro by ossock_wouldblock()
2025-11-08 10:46:03 +01:00
io.c
os: move OsCommRec/Ptr and related functions into own header
2025-11-27 19:36:00 +01:00
io_priv.h
os: move OsCommRec/Ptr and related functions into own header
2025-11-27 19:36:00 +01:00
log.c
os: rename audit.h to audit_priv.h
2025-09-26 15:56:47 +02:00
log_priv.h
os: move LogPrintMarkers() declaration into private header
2025-09-26 11:50:59 +02:00
mathx_priv.h
os: add header for math related functions (possibly OS optimized)
2025-11-27 19:58:33 +01:00
meson.build
os: merge os/xstrans.c and os/transport.c
2025-12-03 13:15:58 +01:00
mitauth.c
os: replace GenerateRandomData() by custom arc4random_buf() on platforms that missing it
2025-09-12 15:37:13 +02:00
mitauth.h
os: auth: generate XIDs in proto funcs only on success
2025-06-12 16:52:56 +02:00
osdep.h
os: move OsCommRec/Ptr and related functions into own header
2025-11-27 19:36:00 +01:00
osinit.c
os: move OsVendorFatalError() and OsVendorInit() to ddx_priv.h
2025-11-27 10:44:58 +01:00
ospoll.c
os: ospoll: include winsock2.h on WIN32 instead of misc.h
2025-07-31 17:41:20 +02:00
ospoll.h
os: ospoll: use stdbool instead of X11's Bool
2025-07-31 15:22:07 +02:00
ossock.c
os: replace ETEST macro by ossock_wouldblock()
2025-11-08 10:46:03 +01:00
ossock.h
os: replace ETEST macro by ossock_wouldblock()
2025-11-08 10:46:03 +01:00
probes_priv.h
os: move probes.h and rename it to probes_priv.h
2025-07-18 04:51:30 +02:00
reallocarray.c
drop obsolete HAVE_DIX_CONFIG_H
2024-10-10 13:38:31 +00:00
screensaver.h
os: unexport screen saver timer functions
2024-09-01 20:23:10 +00:00
serverlock.c
os: move -nolock help message printing to serverlock.h
2024-07-26 22:26:07 +00:00
serverlock.h
os: move -nolock help message printing to serverlock.h
2024-07-26 22:26:07 +00:00
strcasecmp.c
os: drop own implementation of strcasecmp() and strncasecmp()
2025-06-12 17:21:46 +02:00
strcasestr.c
drop obsolete HAVE_DIX_CONFIG_H
2024-10-10 13:38:31 +00:00
string.c
os: unexport xstrtokenize()
2025-06-12 17:21:44 +02:00
strlcat.c
drop obsolete HAVE_DIX_CONFIG_H
2024-10-10 13:38:31 +00:00
strlcpy.c
drop obsolete HAVE_DIX_CONFIG_H
2024-10-10 13:38:31 +00:00
strndup.c
os: use calloc() instead of malloc()
2025-06-12 16:49:45 +02:00
timingsafe_memcmp.c
timingsafe_memcmp: Fix meson build
2017-05-10 10:56:16 -04:00
transport.c
os: merge os/xstrans.c and os/transport.c
2025-12-03 13:15:58 +01:00
utils.c
os: move AllowByteSwappedClients setting into DIX
2025-11-27 10:44:23 +01:00
WaitFor.c
os: replace ETEST macro by ossock_wouldblock()
2025-11-08 10:46:03 +01:00
xdmauth.c
os: move OsCommRec/Ptr and related functions into own header
2025-11-27 19:36:00 +01:00
xdmauth.h
os: auth: generate XIDs in proto funcs only on success
2025-06-12 16:52:56 +02:00
xdmcp.c
os: drop ResetWellKnownSockets() and XdmcpReset()
2025-11-20 19:22:44 +01:00
xdmcp.h
os: drop ResetWellKnownSockets() and XdmcpReset()
2025-11-20 19:22:44 +01:00
xhostname.c
os: xhostname: helper for gethostname()
2025-08-07 16:57:43 +02:00
xhostname.h
os: xhostname: helper for gethostname()
2025-08-07 16:57:43 +02:00
xprintf.c
os: drop unused Xscnprintf() and Xvscnprintf()
2025-11-07 09:31:48 +01:00
xserver_poll.c
os: xserver_poll: replace own typedef by size_t
2025-07-31 14:50:05 +02:00
xserver_poll.h
os: xserver_poll: skip defining symbols already defined by mingw
2025-07-31 15:28:08 +02:00
xsha1.c
os: use calloc() instead of malloc()
2025-06-12 16:49:45 +02:00
xsha1.h
include: move xsha1.h to os/
2024-03-03 23:11:05 +00:00
Xtrans.c
os: xtrans: drop unused transport table indices
2025-09-24 16:34:33 +02:00
Xtrans.h
os: xtrans: drop unused _XSERVTransBytesReadable()
2025-09-24 15:53:57 +02:00
Xtransint.h
os: xtrans: drop unused _XSERVTransBytesReadable()
2025-09-24 15:53:57 +02:00
Xtranslcl.c
os: xtrans: drop unused _XSERVTransBytesReadable()
2025-09-24 15:53:57 +02:00
Xtranssock.c
os: Xtranssock: fix warning on strncpy() call
2025-09-25 16:40:43 +02:00
Xtransutil.c
Xtransutil.c: minor formatting fix
2025-11-17 13:16:45 +01:00