Fix missing includes in folder.h

Fix some warning message
pull/518/head
jsteube 8 years ago
parent 2215174c2e
commit 97d9a5d9cc

@ -4,21 +4,20 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <dirent.h>
#include <unistd.h>
#include <limits.h>
#if defined (_POSIX)
#include <sys/types.h>
#include <pwd.h>
#endif
#if defined (__APPLE__)
#include <mach-o/dyld.h>
#endif // __APPLE__
#endif // _POSIX
#if defined (_POSIX)
#include <sys/types.h>
#include <pwd.h>
#endif
#if defined (_WIN)
#include <windows.h>

@ -18,6 +18,8 @@ static char RULE_BUF_L[] = ":";
void user_options_init (user_options_t *user_options, int myargc, char **myargv)
{
if (myargv == NULL) myargv = NULL; // because compiler warning
user_options->attack_mode = ATTACK_MODE;
user_options->benchmark = BENCHMARK;
user_options->bitmap_max = BITMAP_MAX;
@ -98,7 +100,7 @@ void user_options_init (user_options_t *user_options, int myargc, char **myargv)
user_options->weak_hash_threshold = WEAK_HASH_THRESHOLD;
user_options->workload_profile = WORKLOAD_PROFILE;
user_options->rp_files_cnt = 0;
user_options->rp_files = (char **) mycalloc (myargc, sizeof (char *));;
user_options->rp_files = (char **) mycalloc (myargc, sizeof (char *));
}
void user_options_destroy (user_options_t *user_options)
@ -800,6 +802,8 @@ int user_options_sanity (user_options_t *user_options, int myargc, char **myargv
int user_options_extra_init (user_options_t *user_options, int myargc, char **myargv, user_options_extra_t *user_options_extra)
{
if (myargv == NULL) myargv = NULL; // because compiler warning
user_options_extra->attack_kern = ATTACK_KERN_NONE;
switch (user_options->attack_mode)

Loading…
Cancel
Save