Permalink
Browse files

[refactor] `saneopt_new` -> `saneopt_init`

  • Loading branch information...
1 parent 7f7198b commit f45b80d23dc7da28c5935e5ee4e5bc874ee4566f @mmalecki committed Mar 29, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 include/saneopt.h
  2. +1 −1 src/saneopt.c
View
@@ -17,7 +17,7 @@ struct saneopt {
/*
* Create a new `saneopt` parser.
*/
-saneopt_t* saneopt_new(int argc, char** argv);
+saneopt_t* saneopt_init(int argc, char** argv);
/*
* Set an alias from `old` to `new`.
View
@@ -3,7 +3,7 @@
#include "../include/saneopt.h"
-saneopt_t* saneopt_new(int argc, char** argv) {
+saneopt_t* saneopt_init(int argc, char** argv) {
saneopt_t* saneopt = malloc(sizeof(saneopt_t));
saneopt->argc = argc;
saneopt->argv = argv;

0 comments on commit f45b80d

Please sign in to comment.