[sr #107822] Testing 3.0.2 on AIX

Bjørn Christensen INVALID.NOREPLY at gnu.org
Fri Sep 30 12:15:56 CEST 2011


Follow-up Comment #13, sr #107822 (project gnutls):

If I could choose I would try to program more defensive!

First I would define RESUME_FALSE 0 because that is what I would expect from
0==1.

Also that would if calloc'ed buffer is used default would be not resuming.


Then I would make all comparisons session->internals.resumed == RESUME_FALSE
or session->internals.resumed != RESUME_FALSE 

agains the value defined as 0. In your case RESUME_TRUE, if suggested above
RESUME_FALSE.

In K&R they state that the behaviour of bit fields are implementation
specefic. (Code Defensive)

Does that make any sense?




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/support/?107822>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





More information about the Gnutls-devel mailing list