[2848] in BarnOwl Developers
Re: [PATCH] Don't use error_message if we are building without
daemon@ATHENA.MIT.EDU (David A Benjamin)
Tue Jan 4 11:13:54 2011
Date: Tue, 4 Jan 2011 11:13:50 -0500 (EST)
From: David A Benjamin <davidben@MIT.EDU>
To: Nelson Elhage <nelhage@ksplice.com>
cc: barnowl-dev@mit.edu, Nelson Elhage <nelhage@mit.edu>
In-Reply-To: <1294152432-23936-1-git-send-email-nelhage@mit.edu>
LGTM.
(I assume the commit message was supposed to be longer? :-D)
David
On Tue, 4 Jan 2011, Nelson Elhage wrote:
> 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
>
>