Branch: Tag:

2004-04-29

2004-04-29 12:23:17 by Martin Nilsson <mani@lysator.liu.se>

Only declare variables in the beginning of the function...

Rev: src/post_modules/Nettle/hash.cmod:1.22

1:   /* hash.cmod -*- c -*- */      #include "global.h" - RCSID("$Id: hash.cmod,v 1.21 2004/04/28 19:54:31 nilsson Exp $"); + RCSID("$Id: hash.cmod,v 1.22 2004/04/29 12:23:17 nilsson Exp $");   #include "interpret.h"   #include "svalue.h"   #include "threads.h"
145:    optflags OPT_EXTERNAL_DEPEND;    {    void *ctx; -  int len; +  int len, fd;    char *read_buffer;    PIKE_STAT_T st;    struct pike_string *out;
172:    Pike_error("Object not Fd_ref or subclass.\n");       safe_apply(in, "query_fd", 0); -  int fd = Pike_sp[-1].u.integer; +  fd = Pike_sp[-1].u.integer;    pop_stack();       if (fd_fstat(fd, &st)<0)