]> jfr.im git - solanum.git/commit
authd: fix auth->cid type sizes
authorSimon Arlott <sa.me.uk>
Sun, 1 May 2016 10:12:34 +0000 (11:12 +0100)
committerSimon Arlott <sa.me.uk>
Sun, 1 May 2016 10:12:34 +0000 (11:12 +0100)
commit2392770f4d5961608b6a951d29c9978c1c2f6d84
treee2b28c5b0169fb696cfcd0747ee6aebdb90547c2
parenta4da4fe57467231c4e29ffb01c3c3d1692024e51
authd: fix auth->cid type sizes

* long is too small on 32-bit systems, use unsigned long long if we want
  to check for out of range values
* UINT32_MAX is a valid cid, and 0 isn't
* make auth->cid a uint32_t not uint16_t
authd/authd.c
authd/provider.c
authd/provider.h