Changeset 4c7c21f for cmd.c


Ignore:
Timestamp:
May 20, 2011, 3:59:31 PM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
f97c1a6
Parents:
351c535
git-author:
David Benjamin <davidben@mit.edu> (05/07/11 15:23:49)
git-committer:
David Benjamin <davidben@mit.edu> (05/20/11 15:59:31)
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

    r3b8a563 r4c7c21f  
    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.