-/* $OpenBSD: format.c,v 1.289 2021/08/12 08:05:11 nicm Exp $ */
+/* $OpenBSD: format.c,v 1.290 2021/08/12 08:10:20 nicm Exp $ */
/*
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
void
format_log_debug(struct format_tree *ft, const char *prefix)
{
- format_each(ft, format_log_debug_cb, prefix);
+ format_each(ft, format_log_debug_cb, (void *)prefix);
}
/* Walk each format. */
-/* $OpenBSD: notify.c,v 1.38 2021/08/12 08:05:11 nicm Exp $ */
+/* $OpenBSD: notify.c,v 1.39 2021/08/12 08:10:20 nicm Exp $ */
/*
* Copyright (c) 2012 George Nachman <tmux@georgester.com>
ne.client = cmdq_get_client(item);
ne.session = target->s;
ne.window = target->w;
- ne.pane = target->wp->id;
+ ne.pane = (target->wp != NULL ? target->wp->id : -1);
ne.formats = format_create(NULL, NULL, 0, FORMAT_NOJOBS);
format_add(ne.formats, "hook", "%s", name);