mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
style
This commit is contained in:
parent
355a7e4458
commit
ed67936892
11 changed files with 177 additions and 177 deletions
|
@ -3421,7 +3421,7 @@ TRexBool trex_searchrange(TRex *exp, const TRexChar *text_begin, const TRexChar
|
|||
if (!cur)
|
||||
break;
|
||||
node = exp->_nodes[node].next;
|
||||
}
|
||||
}
|
||||
text_begin++;
|
||||
} while (cur == NULL && text_begin != text_end);
|
||||
|
||||
|
@ -3675,7 +3675,7 @@ void arg_register_error(struct arg_end *end,
|
|||
* Return index of first table entry with a matching short option
|
||||
* or -1 if no match was found.
|
||||
*/
|
||||
static int find_shortoption(struct arg_hdr** table, char shortopt) {
|
||||
static int find_shortoption(struct arg_hdr **table, char shortopt) {
|
||||
int tabindex;
|
||||
for (tabindex = 0; !(table[tabindex]->flag & ARG_TERMINATOR); tabindex++) {
|
||||
if (table[tabindex]->shortopts &&
|
||||
|
@ -3708,7 +3708,7 @@ void dump_longoptions(struct longoptions *longoptions) {
|
|||
}
|
||||
#endif
|
||||
|
||||
static struct longoptions* alloc_longoptions(struct arg_hdr** table) {
|
||||
static struct longoptions *alloc_longoptions(struct arg_hdr **table) {
|
||||
struct longoptions *result;
|
||||
size_t nbytes;
|
||||
int noptions = 1;
|
||||
|
@ -3790,7 +3790,7 @@ static struct longoptions* alloc_longoptions(struct arg_hdr** table) {
|
|||
return result;
|
||||
}
|
||||
|
||||
static char* alloc_shortoptions(struct arg_hdr** table) {
|
||||
static char *alloc_shortoptions(struct arg_hdr **table) {
|
||||
char *result;
|
||||
size_t len = 2;
|
||||
int tabindex;
|
||||
|
@ -3830,7 +3830,7 @@ static char* alloc_shortoptions(struct arg_hdr** table) {
|
|||
|
||||
|
||||
/* return index of the table terminator entry */
|
||||
static int arg_endindex(struct arg_hdr** table) {
|
||||
static int arg_endindex(struct arg_hdr **table) {
|
||||
int tabindex = 0;
|
||||
while (!(table[tabindex]->flag & ARG_TERMINATOR))
|
||||
tabindex++;
|
||||
|
@ -3839,9 +3839,9 @@ static int arg_endindex(struct arg_hdr** table) {
|
|||
|
||||
|
||||
static void arg_parse_tagged(int argc,
|
||||
char **argv,
|
||||
struct arg_hdr **table,
|
||||
struct arg_end *endtable) {
|
||||
char **argv,
|
||||
struct arg_hdr **table,
|
||||
struct arg_end *endtable) {
|
||||
struct longoptions *longoptions;
|
||||
char *shortoptions;
|
||||
int copt;
|
||||
|
@ -3952,9 +3952,9 @@ static void arg_parse_tagged(int argc,
|
|||
|
||||
|
||||
static void arg_parse_untagged(int argc,
|
||||
char **argv,
|
||||
struct arg_hdr **table,
|
||||
struct arg_end *endtable) {
|
||||
char **argv,
|
||||
struct arg_hdr **table,
|
||||
struct arg_end *endtable) {
|
||||
int tabindex = 0;
|
||||
int errorlast = 0;
|
||||
const char *optarglast = NULL;
|
||||
|
@ -4154,11 +4154,11 @@ static void arg_cat(char **pdest, const char *src, size_t *pndest) {
|
|||
|
||||
|
||||
static void arg_cat_option(char *dest,
|
||||
size_t ndest,
|
||||
const char *shortopts,
|
||||
const char *longopts,
|
||||
const char *datatype,
|
||||
int optvalue) {
|
||||
size_t ndest,
|
||||
const char *shortopts,
|
||||
const char *longopts,
|
||||
const char *datatype,
|
||||
int optvalue) {
|
||||
if (shortopts) {
|
||||
char option[3];
|
||||
|
||||
|
@ -4212,12 +4212,12 @@ static void arg_cat_option(char *dest,
|
|||
}
|
||||
|
||||
static void arg_cat_optionv(char *dest,
|
||||
size_t ndest,
|
||||
const char *shortopts,
|
||||
const char *longopts,
|
||||
const char *datatype,
|
||||
int optvalue,
|
||||
const char *separator) {
|
||||
size_t ndest,
|
||||
const char *shortopts,
|
||||
const char *longopts,
|
||||
const char *datatype,
|
||||
int optvalue,
|
||||
const char *separator) {
|
||||
separator = separator ? separator : "";
|
||||
|
||||
if (shortopts) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue