diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2019-06-18 17:22:51 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2019-07-30 17:15:15 +0300 |
commit | 026a3d974673fe2d87793c93496c2bb829ccf1d6 (patch) | |
tree | c52fda1b97d0268961d30ea2742703a06285d64f /src/global.h | |
parent | 63db795dce4e752d0d36a48faf1652f650dfb240 (diff) | |
download | sms-utils-026a3d974673fe2d87793c93496c2bb829ccf1d6.tar.gz sms-utils-026a3d974673fe2d87793c93496c2bb829ccf1d6.tar.bz2 sms-utils-026a3d974673fe2d87793c93496c2bb829ccf1d6.zip |
[MTR-MTQ] Quectel support for sms-utils
Switched from dynamically-allocated to statically-allocated variables for data fetched from the modem.
Diffstat (limited to 'src/global.h')
-rw-r--r-- | src/global.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/global.h b/src/global.h index 764cc06..a6073dd 100644 --- a/src/global.h +++ b/src/global.h @@ -12,6 +12,13 @@ #define GLOBAL_EXTERN extern #endif +#define ICCID_LEN 23 +#define ICCID_SIZE (ICCID_LEN + 1) +#define MODEL_LEN 1023 +#define MODEL_SIZE (MODEL_LEN + 1) +#define MANUFACTURER_LEN 1023 +#define MANUFACTURER_SIZE (MANUFACTURER_LEN + 1) + struct global_user { char *name; char *email; @@ -29,9 +36,9 @@ struct global_core { char *msg_store_send; char *msg_store_new; char *pb_store; - char *model; - char *iccid; /* Needed for LNA3/Verizon */ - char *manufacturer; /* Needed to pick proper manufacturer-specific commands */ + char model[MODEL_SIZE]; + char iccid[ICCID_SIZE]; /* Needed for LNA3/Verizon */ + char manufacturer[MANUFACTURER_SIZE]; /* Needed to pick proper manufacturer-specific commands */ char *editor; char *edit_file; |