mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
fix few missing declarations -> static or add include file
This commit is contained in:
parent
390d0ab525
commit
07cf3fd32b
12 changed files with 19 additions and 11 deletions
|
@ -508,7 +508,7 @@ int CmdGetBitStream(const char *Cmd) {
|
||||||
RepaintGraphWindow();
|
RepaintGraphWindow();
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
int CmdConvertBitStream(const char *Cmd) {
|
static int CmdConvertBitStream(const char *Cmd) {
|
||||||
|
|
||||||
if (isGraphBitstream()) {
|
if (isGraphBitstream()) {
|
||||||
convertGraphFromBitstream();
|
convertGraphFromBitstream();
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// High frequency commands
|
// High frequency commands
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//#include "cmdhf.h"
|
#include "cmdhf.h"
|
||||||
|
|
||||||
#include <ctype.h> // tolower
|
#include <ctype.h> // tolower
|
||||||
|
|
||||||
|
|
|
@ -366,7 +366,7 @@ static void lookupChipID(uint32_t iChipID, uint32_t mem_used) {
|
||||||
PrintAndLogEx(NORMAL, " --= Nonvolatile Program Memory Type: %s", asBuff);
|
PrintAndLogEx(NORMAL, " --= Nonvolatile Program Memory Type: %s", asBuff);
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdDbg(const char *Cmd) {
|
static int CmdDbg(const char *Cmd) {
|
||||||
|
|
||||||
char ctmp = tolower(param_getchar(Cmd, 0));
|
char ctmp = tolower(param_getchar(Cmd, 0));
|
||||||
if (strlen(Cmd) < 1 || ctmp == 'h') return usage_dbg();
|
if (strlen(Cmd) < 1 || ctmp == 'h') return usage_dbg();
|
||||||
|
|
|
@ -213,7 +213,7 @@ static int usage_lf_tune(void) {
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdLFTune(const char *Cmd) {
|
static int CmdLFTune(const char *Cmd) {
|
||||||
int iter = 0;
|
int iter = 0;
|
||||||
uint8_t divisor = LF_DIVISOR_125;//Frequency divisor
|
uint8_t divisor = LF_DIVISOR_125;//Frequency divisor
|
||||||
bool errors = false;
|
bool errors = false;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// Low frequency Hitag support
|
// Low frequency Hitag support
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#include "cmdlfhitag.h"
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "cmdparser.h" // command_t
|
#include "cmdparser.h" // command_t
|
||||||
|
|
|
@ -426,7 +426,7 @@ static int CmdLfNedapGen(const char *Cmd) {
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdLFNedapClone(const char *Cmd) {
|
static int CmdLFNedapClone(const char *Cmd) {
|
||||||
uint8_t max;
|
uint8_t max;
|
||||||
uint32_t blocks[5] = {0};
|
uint32_t blocks[5] = {0};
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,8 @@ int fileExists(const char *filename) {
|
||||||
* @param filename
|
* @param filename
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
bool is_regular_file(const char *filename) {
|
/*
|
||||||
|
static bool is_regular_file(const char *filename) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
struct _stat st;
|
struct _stat st;
|
||||||
if (_stat(filename, &st) == -1)
|
if (_stat(filename, &st) == -1)
|
||||||
|
@ -87,12 +88,14 @@ bool is_regular_file(const char *filename) {
|
||||||
#endif
|
#endif
|
||||||
return S_ISREG(st.st_mode) != 0;
|
return S_ISREG(st.st_mode) != 0;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief checks if path is directory.
|
* @brief checks if path is directory.
|
||||||
* @param filename
|
* @param filename
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
bool is_directory(const char *filename) {
|
static bool is_directory(const char *filename) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
struct _stat st;
|
struct _stat st;
|
||||||
if (_stat(filename, &st) == -1)
|
if (_stat(filename, &st) == -1)
|
||||||
|
|
|
@ -58,6 +58,8 @@ From "Dismantling iclass":
|
||||||
output of hash0 is the diversified card key k = k [0] , . . . , k [7] ∈ (F 82 ) 8 .
|
output of hash0 is the diversified card key k = k [0] , . . . , k [7] ∈ (F 82 ) 8 .
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
#include "ikeys.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
#ifndef IKEYS_H
|
#ifndef IKEYS_H
|
||||||
#define IKEYS_H
|
#define IKEYS_H
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief
|
* @brief
|
||||||
|
|
|
@ -56,7 +56,7 @@ static void showBanner(void) {
|
||||||
g_printAndLog = PRINTANDLOG_PRINT | PRINTANDLOG_LOG;
|
g_printAndLog = PRINTANDLOG_PRINT | PRINTANDLOG_LOG;
|
||||||
}
|
}
|
||||||
|
|
||||||
int check_comm(void) {
|
static int check_comm(void) {
|
||||||
// If communications thread goes down. Device disconnected then this should hook up PM3 again.
|
// If communications thread goes down. Device disconnected then this should hook up PM3 again.
|
||||||
if (IsCommunicationThreadDead() && session.pm3_present) {
|
if (IsCommunicationThreadDead() && session.pm3_present) {
|
||||||
rl_set_prompt(PROXPROMPT_OFFLINE);
|
rl_set_prompt(PROXPROMPT_OFFLINE);
|
||||||
|
@ -86,7 +86,7 @@ int push_cmdscriptfile(char *path, bool stayafter) {
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
FILE *current_cmdscriptfile() {
|
static FILE *current_cmdscriptfile() {
|
||||||
return cmdscriptfile[cmdscriptfile_idx];
|
return cmdscriptfile[cmdscriptfile_idx];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -650,7 +650,7 @@ bool HIDPack(int format_idx, wiegand_card_t *card, wiegand_message_t *packed) {
|
||||||
return FormatTable[format_idx].Pack(card, packed);
|
return FormatTable[format_idx].Pack(card, packed);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HIDDisplayUnpackedCard(wiegand_card_t *card, const cardformat_t format) {
|
static void HIDDisplayUnpackedCard(wiegand_card_t *card, const cardformat_t format) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
PrintAndLogEx(SUCCESS, " Format: %s (%s)", format.Name, format.Descrp);
|
PrintAndLogEx(SUCCESS, " Format: %s (%s)", format.Name, format.Descrp);
|
||||||
|
|
|
@ -120,7 +120,7 @@ bool set_nonlinear_field(wiegand_message_t *data, uint64_t value, uint8_t numBit
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t get_length_from_header(wiegand_message_t *data) {
|
static uint8_t get_length_from_header(wiegand_message_t *data) {
|
||||||
uint8_t len = 0;
|
uint8_t len = 0;
|
||||||
uint32_t hfmt = 0; // for calculating card length
|
uint32_t hfmt = 0; // for calculating card length
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue