Branch: Tag:

2004-01-23

2004-01-23 01:05:06 by Martin Nilsson <mani@lysator.liu.se>

Fixed warnings.

Rev: src/post_modules/Nettle/hash.cmod:1.15
Rev: src/post_modules/Nettle/idea.c:1.5
Rev: src/post_modules/Nettle/nettle.cmod:1.28

1:   /* nettle.cmod -*- c -*- */      #include "global.h" - RCSID("$Id: nettle.cmod,v 1.27 2004/01/22 23:10:00 nilsson Exp $"); + RCSID("$Id: nettle.cmod,v 1.28 2004/01/23 01:05:06 nilsson Exp $");   #include "interpret.h"   #include "svalue.h"   /* For this_object() */
149:    NO_WIDE_STRING(data);    if( !THIS->sources )    Pike_error("This random generator has no sources.\n"); -  if( source<0 || source>=THIS->ctx.nsources ) +  if( source<0 || (unsigned)source>=THIS->ctx.nsources )    Pike_error("Invalid random source.\n");    if( entropy<0 )    Pike_error("Entropy must be positive.\n");
221:    0   };    - static char * assert_is_crypto_object(struct program *p, + static const char * assert_is_crypto_object(struct program *p,    const char **required) {    while (*required) {    if (find_identifier( (char *) *required, p) < 0)
233:      static struct object *make_cipher_object(INT32 args) {    ptrdiff_t fun; -  char *missing; +  const char *missing;    struct svalue *top = Pike_sp-args;    struct object *obj;