1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-23 08:38:09 +00:00

Merge pull request #241 from philsmd/master

minor: reformatting of recently changed code + use uint instead of unsigned int
This commit is contained in:
Jens Steube 2016-02-27 17:20:08 +01:00
commit 6a2c293457

View File

@ -3093,7 +3093,7 @@ int hm_get_temperature_with_device_id (const uint device_id)
#if defined(LINUX) && defined(HAVE_NVML)
int temperature = 0;
hm_NVML_nvmlDeviceGetTemperature (data.hm_nv, data.hm_device[device_id].adapter_index.nv, NVML_TEMPERATURE_GPU, (unsigned int *) &temperature);
hm_NVML_nvmlDeviceGetTemperature (data.hm_nv, data.hm_device[device_id].adapter_index.nv, NVML_TEMPERATURE_GPU, (uint *) &temperature);
return temperature;
#endif
@ -3162,7 +3162,7 @@ int hm_get_fanspeed_with_device_id (const uint device_id)
#if defined(LINUX) && defined(HAVE_NVML)
int speed = 0;
hm_NVML_nvmlDeviceGetFanSpeed (data.hm_nv, 1, data.hm_device[device_id].adapter_index.nv, (unsigned int *) &speed);
hm_NVML_nvmlDeviceGetFanSpeed (data.hm_nv, 1, data.hm_device[device_id].adapter_index.nv, (uint *) &speed);
return speed;
#endif
@ -10075,8 +10075,8 @@ int wpa_parse_hash (char *input_buf, uint input_len, hash_t *hash_buf)
uint32_t c0 = 0;
uint32_t c1 = 0;
for (unsigned int i = 0; i < sizeof(in.essid)/sizeof(uint32_t); i++) c0 ^= *p0++;
for (unsigned int i = 0; i < sizeof(wpa->pke)/sizeof(wpa->pke[0]); i++) c1 ^= wpa->pke[i];
for (uint i = 0; i < sizeof (in.essid) / sizeof (uint32_t); i++) c0 ^= *p0++;
for (uint i = 0; i < sizeof (wpa->pke) / sizeof (wpa->pke[0]); i++) c1 ^= wpa->pke[i];
salt->salt_buf[10] = c0;
salt->salt_buf[11] = c1;