Changeset 1672650 for variable.c


Ignore:
Timestamp:
Mar 7, 2010, 10:25:09 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
40d22cf
Parents:
43e8bb2
git-author:
Anders Kaseorg <andersk@mit.edu> (02/27/10 20:03:38)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/07/10 22:25:09)
Message:
Rename atokenize_free to atokenize_delete.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • variable.c

    r7a3a747 r1672650  
    929929  enums = atokenize(v->validsettings, ",", &nenums);
    930930  if (enums == NULL) return(0);
    931   atokenize_free(enums, nenums);
     931  atokenize_delete(enums, nenums);
    932932  val = *(const int*)newval;
    933933  if (val < 0 || val >= nenums) {
     
    948948    }
    949949  }
    950   atokenize_free(enums, nenums);
     950  atokenize_delete(enums, nenums);
    951951  if (val == -1) return(-1);
    952952  return (v->set_fn(v, &val));
     
    965965  if (i<0 || i>=nenums) {
    966966    snprintf(buf, bufsize, "<invalid:%d>",i);
    967     atokenize_free(enums, nenums);
     967    atokenize_delete(enums, nenums);
    968968    return(-1);
    969969  }
    970970  snprintf(buf, bufsize, "%s", enums[i]);
    971   atokenize_free(enums, nenums);
     971  atokenize_delete(enums, nenums);
    972972  return 0;
    973973}
Note: See TracChangeset for help on using the changeset viewer.