minor: server config fname size constst: binaries in

This commit is contained in:
2021-07-27 17:38:02 +02:00
parent adf690cdcd
commit 6461fddc5d
10 changed files with 12 additions and 8 deletions

View File

@ -434,8 +434,9 @@ int readConfigFile() {
master = -1; master = -1;
top = -1; top = -1;
char fname[128]; const int fileNameSize = 128;
if (getAbsPath(fname, 128, CONFIG_FILE) == FAIL) { char fname[fileNameSize];
if (getAbsPath(fname, fileNameSize, CONFIG_FILE) == FAIL) {
return FAIL; return FAIL;
} }

View File

@ -530,8 +530,9 @@ int readConfigFile() {
usleep(INITIAL_STARTUP_WAIT); usleep(INITIAL_STARTUP_WAIT);
char fname[128]; const int fileNameSize = 128;
if (getAbsPath(fname, 128, CONFIG_FILE) == FAIL) { char fname[fileNameSize];
if (getAbsPath(fname, fileNameSize, CONFIG_FILE) == FAIL) {
return FAIL; return FAIL;
} }

View File

@ -588,8 +588,9 @@ void setGbitReadout() {
} }
int readConfigFile() { int readConfigFile() {
char fname[128]; const int fileNameSize = 128;
if (getAbsPath(fname, 128, CONFIG_FILE) == FAIL) { char fname[fileNameSize];
if (getAbsPath(fname, fileNameSize, CONFIG_FILE) == FAIL) {
return FAIL; return FAIL;
} }

View File

@ -483,8 +483,9 @@ int readConfigFile() {
return initError; return initError;
} }
char fname[128]; const int fileNameSize = 128;
if (getAbsPath(fname, 128, CONFIG_FILE) == FAIL) { char fname[fileNameSize];
if (getAbsPath(fname, fileNameSize, CONFIG_FILE) == FAIL) {
return FAIL; return FAIL;
} }