Permalink
Browse files

rename command_clean() to command_free()

  • Loading branch information...
tj committed Jan 8, 2013
1 parent 18fee5c commit be54eaf4ba5eb906bf70e7139dd1f5e12bb0a3be
Showing with 6 additions and 6 deletions.
  1. +2 −2 src/commander.c
  2. +2 −2 src/commander.h
  3. +2 −2 test.c
View
@@ -70,11 +70,11 @@ command_init(command_t *self, const char *name, const char *version) {
}
/*
- * Clean up the command after use.
+ * Free up commander after use.
*/
void
-command_clean(command_t *self) {
+command_free(command_t *self) {
for (int i = 0; i < self->option_count; ++i) {
command_option_t *option = &self->options[i];
free(option->argname);
View
@@ -74,7 +74,7 @@ void
command_init(command_t *self, const char *name, const char *version);
void
-command_clean(command_t *self);
+command_free(command_t *self);
void
command_help(command_t *self);
@@ -85,4 +85,4 @@ command_option(command_t *self, const char *small, const char *large, const char
void
command_parse(command_t *self, int argc, char **argv);
-#endif /* COMMANDER_H */
+#endif /* COMMANDER_H */
View
4 test.c
@@ -29,6 +29,6 @@ main(int argc, char **argv){
for (int i = 0; i < cmd.argc; ++i) {
printf(" - '%s'\n", cmd.argv[i]);
}
- command_clean(&cmd);
+ command_free(&cmd);
return 0;
-}
+}

0 comments on commit be54eaf

Please sign in to comment.