summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-10-05 08:41:45 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-10-05 08:41:45 (EDT)
commitc48fe014317e8ad5a0afd05ba016ddad19d08e9a (patch)
tree34147f68bf2f1ad98acde27b2e2a20b937e3ac7e
parentdab4d96f5927fdd6d1676ee3f5e810fc7ae62272 (diff)
downloadmarquee-c48fe014317e8ad5a0afd05ba016ddad19d08e9a.zip
marquee-c48fe014317e8ad5a0afd05ba016ddad19d08e9a.tar.gz
marquee-c48fe014317e8ad5a0afd05ba016ddad19d08e9a.tar.bz2
mq_window_get_notebook(): Cast return value
Fixes: src/window.c: In function ‘mq_window_get_notebook’: src/window.c:345:15: warning: return from incompatible pointer type [-Wincompatible-pointer-types] return window->notebook; ~~~~~~^~~~~~~~~~
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index bdf9870..b1c35d0 100644
--- a/src/window.c
+++ b/src/window.c
@@ -342,7 +342,7 @@ mq_window_get_application(MqWindow *window)
MqNotebook *
mq_window_get_notebook(MqWindow *window)
{
- return window->notebook;
+ return MQ_NOTEBOOK(window->notebook);
}
void