dgaudet     98/01/02 16:23:59

  Modified:    src/main alloc.c
  Log:
  style guide changes.
  
  Revision  Changes    Path
  1.66      +10 -4     apachen/src/main/alloc.c
  
  Index: alloc.c
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/main/alloc.c,v
  retrieving revision 1.65
  retrieving revision 1.66
  diff -u -r1.65 -r1.66
  --- alloc.c   1997/12/30 19:56:11     1.65
  +++ alloc.c   1998/01/03 00:23:59     1.66
  @@ -731,7 +731,7 @@
       table_entry *elts = (table_entry *) t->elts;
       int done = 0;
   
  -    for (i = 0; i < t->nelts; )
  +    for (i = 0; i < t->nelts; ) {
        if (!strcasecmp(elts[i].key, key)) {
            if (!done) {
                elts[i].val = pstrdup(t->pool, val);
  @@ -746,7 +746,10 @@
                --t->nelts;
            }
        }
  -     else ++i;
  +     else {
  +         ++i;
  +     }
  +    }
   
       if (!done) {
        elts = (table_entry *) push_array(t);
  @@ -760,7 +763,7 @@
       register int i, j, k;
       table_entry *elts = (table_entry *) t->elts;
   
  -    for (i = 0; i < t->nelts; )
  +    for (i = 0; i < t->nelts; ) {
        if (!strcasecmp(elts[i].key, key)) {
   
            /* found an element to skip over
  @@ -774,7 +777,10 @@
            }
            --t->nelts;
        }
  -     else ++i;
  +     else {
  +         ++i;
  +     }
  +    }
   }
   
   API_EXPORT(void) table_merge(table *t, const char *key, const char *val)
  
  
  

Reply via email to