A const pointer would be more appropriate

This commit is contained in:
Ashish Kumar Yadav 2020-12-05 03:38:37 +05:30
parent 7f688e4464
commit cfafed075b

View file

@ -17,8 +17,8 @@
#define LENGTH(X) (sizeof X / sizeof X[0]) #define LENGTH(X) (sizeof X / sizeof X[0])
typedef struct { typedef struct {
char *pathu; char *const pathu;
char *pathc; char *const pathc;
const int interval; const int interval;
const int signal; const int signal;
char cmdoutcur[CMDLENGTH]; char cmdoutcur[CMDLENGTH];