summaryrefslogtreecommitdiff
path: root/src/global.h
diff options
context:
space:
mode:
authorJames Maki <jmaki@multitech.com>2010-05-07 10:52:16 -0500
committerJames Maki <jmaki@multitech.com>2010-05-07 10:52:16 -0500
commit408d03be285010d852fa4234ea03f80e7ee5403a (patch)
treee08b848fc0662813de77b867f7d6eaf80bab1cb6 /src/global.h
parentcce54aff649a226b987a13638f8dfcc56179d64a (diff)
downloadsms-utils-408d03be285010d852fa4234ea03f80e7ee5403a.tar.gz
sms-utils-408d03be285010d852fa4234ea03f80e7ee5403a.tar.bz2
sms-utils-408d03be285010d852fa4234ea03f80e7ee5403a.zip
clean up some memory
Diffstat (limited to 'src/global.h')
-rw-r--r--src/global.h38
1 files changed, 1 insertions, 37 deletions
diff --git a/src/global.h b/src/global.h
index 4a73d9e..fe8f5c2 100644
--- a/src/global.h
+++ b/src/global.h
@@ -53,42 +53,6 @@ struct global_config {
struct global_send_email send_email;
};
-#if __MAIN_FILE_C
-struct global_config Global = {
- .user = {
- .name = NULL,
- .email = NULL,
- },
- .core = {
- .verbose = false,
- .interactive = true,
- .sms_init = true,
- .baud_rate = B115200,
- .read_timeout = 5000,
- .device = DEFAULT_DEVICE,
- .msg_store_read = "MT",
- .msg_store_send = "MT",
- .msg_store_new = "MT",
- .pb_store = "ME",
- .editor = "vi",
- .edit_file = "${HOME}/.smsmsg",
- },
- .smtp = {
- .server = NULL,
- .port = 0,
- .user = NULL,
- .passwd = NULL,
- .encryption = NULL,
- },
- .send_email = {
- .domain = NULL,
- },
-};
-#else
-extern struct global_config Global;
-#endif
-
-
+GLOBAL_EXTERN struct global_config Global;
#endif /* ~__GLOBAL_H */
-