Replace char[] with *char
The latter is more correct. The side effect is that filesize becomes smaller. gcc clang before O2 756112 762120 Os 674192 680216 after O2 748456 760728 Os 666536 674728
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@
|
||||
#define RULE_RC_SYNTAX_ERROR -1
|
||||
#define RULE_RC_REJECT_ERROR -2
|
||||
|
||||
int _old_apply_rule (char *rule, int rule_len, char in[RP_PASSWORD_SIZE], int in_len, char out[RP_PASSWORD_SIZE]);
|
||||
int _old_apply_rule (const char *rule, int rule_len, char in[RP_PASSWORD_SIZE], int in_len, char out[RP_PASSWORD_SIZE]);
|
||||
|
||||
int run_rule_engine (const int rule_len, const char *rule_buf);
|
||||
|
||||
|
||||
+9
-9
@@ -861,8 +861,8 @@ struct hashconfig
|
||||
|
||||
int (*parse_func) (u8 *, u32, hash_t *, const struct hashconfig *);
|
||||
|
||||
char *st_hash;
|
||||
char *st_pass;
|
||||
const char *st_hash;
|
||||
const char *st_pass;
|
||||
};
|
||||
|
||||
typedef struct hashconfig hashconfig_t;
|
||||
@@ -1534,13 +1534,13 @@ typedef struct user_options
|
||||
bool username;
|
||||
bool version;
|
||||
char *cpu_affinity;
|
||||
char *custom_charset_1;
|
||||
char *custom_charset_2;
|
||||
char *custom_charset_3;
|
||||
const char *custom_charset_1;
|
||||
const char *custom_charset_2;
|
||||
const char *custom_charset_3;
|
||||
char *custom_charset_4;
|
||||
char *debug_file;
|
||||
char *encoding_from;
|
||||
char *encoding_to;
|
||||
const char *encoding_from;
|
||||
const char *encoding_to;
|
||||
char *induction_dir;
|
||||
char *markov_hcstat;
|
||||
char *opencl_devices;
|
||||
@@ -1551,8 +1551,8 @@ typedef struct user_options
|
||||
char *potfile_path;
|
||||
char *restore_file_path;
|
||||
char **rp_files;
|
||||
char *rule_buf_l;
|
||||
char *rule_buf_r;
|
||||
const char *rule_buf_l;
|
||||
const char *rule_buf_r;
|
||||
char separator;
|
||||
const char *session;
|
||||
char *truecrypt_keyfiles;
|
||||
|
||||
Reference in New Issue
Block a user