[2847] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[PATCH] Don't use error_message if we are building without Zephyr.

daemon@ATHENA.MIT.EDU (Nelson Elhage)
Tue Jan 4 09:47:23 2011

From: Nelson Elhage <nelhage@ksplice.com>
To: barnowl-dev@mit.edu
Cc: Nelson Elhage <nelhage@mit.edu>
Date: Tue,  4 Jan 2011 09:47:12 -0500

That code path will never actually be executed if we don't have Zephyr, so let's
---
 functions.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/functions.c b/functions.c
index 1f2aa12..2619977 100644
--- a/functions.c
+++ b/functions.c
@@ -375,6 +375,7 @@ void owl_callback_zwrite(owl_editwin *e) {
 /* send, log and display an outgoing zephyr.  If 'msg' is NULL
  * the message is expected to be set from the zwrite line itself
  */
+#ifdef HAVE_LIBZEPHYR
 void owl_function_zwrite(owl_zwrite *z, const char *msg)
 {
   owl_message *m;
@@ -409,6 +410,10 @@ void owl_function_zwrite(owl_zwrite *z, const char *msg)
     }
   }
 }
+#else
+void owl_function_zwrite(owl_zwrite *z, const char *msg) {
+}
+#endif
 
 /* send, log and display an outgoing zcrypt zephyr.  If 'msg' is NULL
  * the message is expected to be set from the zwrite line itself
-- 
1.7.3.4


home help back first fref pref prev next nref lref last post