mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
make style
This commit is contained in:
parent
4b41e36d49
commit
eafeb47126
6 changed files with 16 additions and 16 deletions
|
@ -95,7 +95,7 @@ jint sendCMD(JNIEnv *env, jobject instance, jstring cmd_) {
|
|||
}
|
||||
//无论如何,新的命令的输入了,就要换个行!
|
||||
PrintAndLogEx(NORMAL, "\n");
|
||||
char *cmd = (char *) ((*env)->GetStringUTFChars(env, cmd_, 0));
|
||||
char *cmd = (char *)((*env)->GetStringUTFChars(env, cmd_, 0));
|
||||
// Many parts of the PM3 client will assume that they can read any write from pwd. So we set
|
||||
// pwd to whatever the PM3 "executable directory" is, to get consistent behaviour.
|
||||
/*int ret = chdir(get_my_executable_directory());
|
||||
|
@ -120,7 +120,7 @@ jint sendCMD(JNIEnv *env, jobject instance, jstring cmd_) {
|
|||
* 是否在执行命令
|
||||
* */
|
||||
jboolean isExecuting(JNIEnv *env, jobject instance) {
|
||||
return (jboolean) ((jboolean) conn.run);
|
||||
return (jboolean)((jboolean) conn.run);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -133,7 +133,7 @@ jboolean testPm3(JNIEnv *env, jobject instance) {
|
|||
return false;
|
||||
}
|
||||
bool ret2 = TestProxmark() == PM3_SUCCESS;
|
||||
return (jboolean) (ret1 && ret2);
|
||||
return (jboolean)(ret1 && ret2);
|
||||
}
|
||||
|
||||
void stopPm3(JNIEnv *env, jobject instance) {
|
||||
|
|
|
@ -24,7 +24,7 @@ void crc32_ex(const uint8_t *data, const size_t len, uint8_t *crc) {
|
|||
crc32_byte(&desfire_crc, data[i]);
|
||||
}
|
||||
uint32_t crctmp = htole32(desfire_crc);
|
||||
for (size_t i=0; i < sizeof(uint32_t); i++) {
|
||||
for (size_t i = 0; i < sizeof(uint32_t); i++) {
|
||||
crc[i] = ((uint8_t *) &crctmp)[i];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue