Branch: Tag:

2017-05-15

2017-05-15 17:27:01 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Build [Nettle]: Fixed some C99-isms.

329:    PIKEFUN string(8bit) random_string(int len)    {    int stored = 0; +  struct pike_string *s; +  uint8_t *str;       if(len<0) Pike_error("Length has to be positive.\n"); -  struct pike_string *s = begin_shared_string(len); -  uint8_t *str = (uint8_t *)s->str; +  +  s = begin_shared_string(len); +  str = (uint8_t *)s->str; +     while( (len-stored) >= 16 )    {    fortuna_generate(str);