Branch: Tag:

2005-01-27

2005-01-27 19:15:01 by Martin Nilsson <mani@lysator.liu.se>

A few more consts that surprisingly does make a difference.

Rev: src/post_modules/Nettle/crypt_md5.c:1.7
Rev: src/post_modules/Nettle/nettle.cmod:1.40

1:   /* nettle.cmod -*- c -*- */ - /* $Id: nettle.cmod,v 1.39 2004/10/22 22:42:10 nilsson Exp $ */ + /* $Id: nettle.cmod,v 1.40 2005/01/27 19:15:01 nilsson Exp $ */      #include "global.h"   #include "interpret.h"
236:    0   };    - static const char * assert_is_crypto_object(struct program *p, -  const char **required) { + static const char *assert_is_crypto_object(struct program *p, +  const char *const *required) {    while (*required) {    if (find_identifier( (char *) *required, p) < 0)    return *required;
330:    THIS->iv = 0;    }    -  INLINE static void cbc_encrypt_step(const unsigned INT8 *source, +  INLINE static void cbc_encrypt_step(const unsigned INT8 *const source,    unsigned INT8 *dest)    {    INT32 block_size = THIS->block_size;
354:    pop_stack();    }    -  INLINE static void cbc_decrypt_step(const unsigned INT8 *source, +  INLINE static void cbc_decrypt_step(const unsigned INT8 *const source,    unsigned INT8 *dest)    {    INT32 block_size = THIS->block_size;