Changeset 92fc397 for cmd.c


Ignore:
Timestamp:
May 12, 2011, 4:39:27 PM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Children:
c6c51d2
Parents:
c72f884
git-author:
David Benjamin <davidben@mit.edu> (05/07/11 15:23:49)
git-committer:
David Benjamin <davidben@mit.edu> (05/12/11 16:39:27)
Message:
owl_dict_create also never fails

And like everywhere else, we weren't checking the return values most of
the time anyway.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmd.c

    r55b2de8 r92fc397  
    1212
    1313int owl_cmddict_setup(owl_cmddict *cd) {
    14   if (0 != owl_cmddict_init(cd)) return(-1);
     14  owl_cmddict_init(cd);
    1515  if (0 != owl_cmddict_add_from_list(cd, commands_to_init)) return(-1);
    1616  return(0);
    1717}
    1818
    19 int owl_cmddict_init(owl_cmddict *cd) {
    20   if (owl_dict_create(cd)) return(-1);
    21   return(0);
     19void owl_cmddict_init(owl_cmddict *cd) {
     20  owl_dict_create(cd);
    2221}
    2322
Note: See TracChangeset for help on using the changeset viewer.