1
mirror of https://github.com/hashcat/hashcat synced 2024-11-13 17:28:58 +01:00

Fix cast qual with double pointers

This commit is contained in:
Rosen Penev 2017-11-24 11:05:54 -08:00
parent e93fa25454
commit dee6934f32
4 changed files with 8 additions and 8 deletions

View File

@ -16,8 +16,8 @@
int sort_by_stringptr (const void *p1, const void *p2)
{
const char **s1 = (const char **) p1;
const char **s2 = (const char **) p2;
const char* const *s1 = (const char* const *) p1;
const char* const *s2 = (const char* const *) p2;
return strcmp (*s1, *s2);
}

View File

@ -13,8 +13,8 @@
static int sort_by_mtime (const void *p1, const void *p2)
{
const char **f1 = (const char **) p1;
const char **f2 = (const char **) p2;
const char* const *f1 = (const char* const *) p1;
const char* const *f2 = (const char* const *) p2;
hc_stat_t s1;
hc_stat_t s2;

View File

@ -69,8 +69,8 @@ static char *status_get_rules_file (const hashcat_ctx_t *hashcat_ctx)
void format_timer_display (struct tm *tm, char *buf, size_t len)
{
const char *time_entities_s[] = { "year", "day", "hour", "min", "sec" };
const char *time_entities_m[] = { "years", "days", "hours", "mins", "secs" };
const char *const time_entities_s[] = { "year", "day", "hour", "min", "sec" };
const char *const time_entities_m[] = { "years", "days", "hours", "mins", "secs" };
if (tm->tm_year - 70)
{

View File

@ -8,7 +8,7 @@
#include "shared.h"
#include "usage.h"
static const char *USAGE_MINI[] =
static const char *const USAGE_MINI[] =
{
"Usage: %s [options]... hash|hashfile|hccapxfile [dictionary|mask|directory]...",
"",
@ -16,7 +16,7 @@ static const char *USAGE_MINI[] =
NULL
};
static const char *USAGE_BIG[] =
static const char *const USAGE_BIG[] =
{
"%s - advanced password recovery",
"",