1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 07:08:19 +00:00

get rid of hc_global_data_t data in shared.c

This commit is contained in:
jsteube 2016-09-08 14:11:35 +02:00
parent 245e2a3e73
commit ae457c992e
3 changed files with 3 additions and 49 deletions

View File

@ -9,30 +9,9 @@
#ifndef _SHARED_H
#define _SHARED_H
#include <errno.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <fcntl.h>
#include <inttypes.h>
/**
* OS specific includes
*/
#if defined (_POSIX)
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/sysctl.h>
#endif // _POSIX
#if defined (_WIN)
#include <windows.h>
#endif // _WIN
/**
* functions ok for shared
*/
u32 get_random_num (const u32 min, const u32 max);

View File

@ -19,6 +19,7 @@
#include <search.h>
#include <getopt.h>
#include <inttypes.h>
#include <signal.h>
#if defined (_POSIX)
#include <pthread.h>

View File

@ -6,36 +6,10 @@
* License.....: MIT
*/
#if defined (__APPLE__)
#include <stdio.h>
#endif
#include "common.h"
#include "types_int.h"
#include "types.h"
#include "timer.h"
#include "memory.h"
#include "logging.h"
#include "ext_OpenCL.h"
#include "ext_ADL.h"
#include "ext_nvapi.h"
#include "ext_nvml.h"
#include "ext_xnvctrl.h"
#include "convert.h"
#include "locking.h"
#include "thread.h"
#include "rp_cpu.h"
#include "hwmon.h"
#include "mpsp.h"
#include "rp_cpu.h"
#include "opencl.h"
#include "restore.h"
#include "data.h"
#include "status.h"
#include "shared.h"
extern hc_global_data_t data;
u32 get_random_num (const u32 min, const u32 max)
{
if (min == max) return (min);