From 25ec6d06cb74f3a3ce1884fa5ae8593d6b34ea00 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 22 Jul 2015 12:24:33 -0400 Subject: [PATCH] terminology: Fix formatting NB: No functional changes Signed-off-by: Chris Michael --- src/bin/termio.c | 2 -- src/bin/termptysave.c | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bin/termio.c b/src/bin/termio.c index 47ac51e5..ffdd7e71 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -370,7 +370,6 @@ termio_scroll_set(Evas_Object *obj, int scroll) _smart_apply(obj); } - const char * termio_title_get(Evas_Object *obj) { @@ -625,7 +624,6 @@ termio_config_update(Evas_Object *obj) _smart_size(obj, ow / w, oh / h, EINA_TRUE); } - Config * termio_config_get(const Evas_Object *obj) { diff --git a/src/bin/termptysave.c b/src/bin/termptysave.c index 686ea0ff..2c222005 100644 --- a/src/bin/termptysave.c +++ b/src/bin/termptysave.c @@ -100,10 +100,11 @@ _alloc_new(int size, unsigned char gen) // get mmaped anonymous memory so when freed it goes away from the system ptr = (unsigned char*) mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); - if (ptr == MAP_FAILED) { + if (ptr == MAP_FAILED) + { ERR("Cannot allocate more memory with mmap MAP_ANONYMOUS"); return NULL; - } + } // note - we SHOULD memset to 0, but we are assuming mmap anon give 0 pages //memset(ptr, 0, newsize);