stricter warnings, wip

This commit is contained in:
Philippe Teuwen
2020-05-03 01:13:28 +02:00
parent 9358554884
commit 3529aea157
43 changed files with 140 additions and 142 deletions

View File

@@ -13,7 +13,7 @@
#include "fileutils.h"
#include "pm3_cmd.h"
int openAIDFile(json_t **root, bool verbose) {
static int openAIDFile(json_t **root, bool verbose) {
json_error_t error;
char *path;
@@ -42,7 +42,7 @@ out:
return retval;
}
int closeAIDFile(json_t *root) {
static int closeAIDFile(json_t *root) {
json_decref(root);
return PM3_SUCCESS;
@@ -71,7 +71,7 @@ int AIDSearchFree(json_t *root) {
return closeAIDFile(root);
}
const char *jsonStrGet(json_t *data, char *name) {
static const char *jsonStrGet(json_t *data, const char *name) {
json_t *jstr;
jstr = json_object_get(data, name);
@@ -88,7 +88,7 @@ const char *jsonStrGet(json_t *data, char *name) {
return cstr;
}
bool aidCompare(const char *aidlarge, const char *aidsmall) {
static bool aidCompare(const char *aidlarge, const char *aidsmall) {
if (strcmp(aidlarge, aidsmall) == 0)
return true;