Home GnuPG
Diffusion nPth ed674b9eb218

w32: Don't allocate attribute internally.

Description

w32: Don't allocate attribute internally.

* w32/npth.c (npth_create): Examine ->detachstate directly when
USER_ATTR != NULL.  Remove allocation of ATTR.
(npth_rwlock_init): Examine ->kind directly when USER_ATTR != NULL.
Remove allocation of ATTR.
(npth_clock_gettime): Remove unused USECS variable.
(calculate_timeout, npth_tryjoin_np): Remove unused RES variable.
(npth_join, onpth_mutex_trylock): Likewise.
(npth_cond_broadcast): Remove unused ANY variable.
(rwlock_init_check): It's not used, so, if-out by preprocessor.
(npth_eselect): Remove unused sock_event_idx variable.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Mar 22 2022, 2:25 AM
Parents
rPTH0e16575e69a3: Fix npth_ppoll when !HAVE_PPOLL.
Branches
Unknown
Tags
Unknown