Changeset 16

Show
Ignore:
Timestamp:
07/03/01 20:09:48 (13 years ago)
Author:
jesus
Message:

Update for compile warnings and bug in skiplists with uninitialized variable.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/hash.c

    r11 r16  
    1414#include <stdlib.h> 
    1515#include <stdio.h> 
     16#include <string.h> 
    1617 
    1718#include "hash.h" 
  • trunk/skiplist.c

    r2 r16  
    144144  m = sl->top; 
    145145  while(m) { 
    146     int compared
     146    int compared = 1
    147147    if(m->next) compared=comp(data, m->next->data); 
    148148    if(compared == 0) { 
  • trunk/spreadlogd.c

    r15 r16  
    1111#include <stdio.h> 
    1212#include <stdlib.h> 
     13#include <string.h> 
    1314#include <signal.h> 
    1415#include <unistd.h> 
     
    1920#include "config.h" 
    2021 
    21 #define SPREADLOGD_VERSION "1.4.1
     22#define SPREADLOGD_VERSION "1.4.2
    2223 
    2324extern char *optarg; 
     
    127128 
    128129int main(int argc, char **argv) { 
     130#ifdef SPREAD_VERSION 
     131  int mver, miver, pver; 
     132#endif 
    129133  char *configfile = default_configfile; 
    130134  char *message;