more libstrongswan-like error handling in optionsfrom

This commit is contained in:
Martin Willi
2007-10-03 15:02:29 +00:00
parent 8bcdf1562c
commit 6a8e7381d0
3 changed files with 36 additions and 53 deletions
+2 -3
View File
@@ -30,9 +30,8 @@
* @param argcp pointer to argc
* @param argvp pointer to argv[]
* @param optind current optind, number of next argument
* @param errfile where to report errors (NULL means return)
* @return NULL if successful, error string otherwise
* @return TRUE if optionsfrom parsing successful
*/
err_t optionsfrom(const char *filename, int *argcp, char **argvp[], int optind, FILE *errfile);
bool optionsfrom(const char *filename, int *argcp, char **argvp[], int optind);
#endif /*OPTIONSFROM_H_*/