{
int num = args_callback_command(argv2[t],next);
if(num>2) {
- fprintf("internal error in command line parsing\n");
+ fprintf(stderr, "internal error in command line parsing\n");
exit(1);
}
t+=num;
struct options_t
{
- char*shortoption;
- char*longoption;
+ const char*shortoption;
+ const char*longoption;
};
static int args_long2shortoption(struct options_t*options, char*name, char*val)
return 0;
}
-char* filename2template(char*filename, int*startindex)
+static char* filename2template(char*filename, int*startindex)
{
int l = strlen(filename);
char*newname = (char*)malloc(l+5);