"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/auths/auth-spa.c" between
exim-4.91.tar.xz and exim-4.92.tar.xz

About: Exim is a message transfer agent (MTA).

auth-spa.c  (exim-4.91.tar.xz):auth-spa.c  (exim-4.92.tar.xz)
skipping to change at line 1208 skipping to change at line 1208
* The other files (the ones stolen from Samba) should be OK. * The other files (the ones stolen from Samba) should be OK.
*/ */
/* I am not crazy about these macros -- they seem to have gotten /* I am not crazy about these macros -- they seem to have gotten
* a bit complex. A new scheme for handling string/buffer fields * a bit complex. A new scheme for handling string/buffer fields
* in the structures probably needs to be designed * in the structures probably needs to be designed
*/ */
#define spa_bytes_add(ptr, header, buf, count) \ #define spa_bytes_add(ptr, header, buf, count) \
{ \ { \
if (buf != NULL && count) \ if (buf != NULL && count != 0) /* we hate -Wint-in-bool-contex */ \
{ \ { \
SSVAL(&ptr->header.len,0,count); \ SSVAL(&ptr->header.len,0,count); \
SSVAL(&ptr->header.maxlen,0,count); \ SSVAL(&ptr->header.maxlen,0,count); \
SIVAL(&ptr->header.offset,0,((ptr->buffer - ((uint8x*)ptr)) + ptr->bufIndex)); \ SIVAL(&ptr->header.offset,0,((ptr->buffer - ((uint8x*)ptr)) + ptr->bufIndex)); \
memcpy(ptr->buffer+ptr->bufIndex, buf, count); \ memcpy(ptr->buffer+ptr->bufIndex, buf, count); \
ptr->bufIndex += count; \ ptr->bufIndex += count; \
} \ } \
else \ else \
{ \ { \
ptr->header.len = \ ptr->header.len = \
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)