]> git.sur5r.net Git - i3/i3/blobdiff - src/output.c
Merge branch 'master' into next
[i3/i3] / src / output.c
index 684879240bad55366a261bdc231384d42ab0c059..6499c65df77d46dea56fb8c75b432ebedb1dad61 100644 (file)
@@ -1,7 +1,14 @@
+#undef I3__FILE__
+#define I3__FILE__ "output.c"
 /*
  * vim:ts=4:sw=4:expandtab
+ *
+ * i3 - an improved dynamic tiling window manager
+ * © 2009-2013 Michael Stapelberg and contributors (see also: LICENSE)
+ *
+ * output.c: Output (monitor) related functions.
+ *
  */
-
 #include "all.h"
 
 /*
@@ -12,9 +19,8 @@ Con *output_get_content(Con *output) {
     Con *child;
 
     TAILQ_FOREACH(child, &(output->nodes_head), nodes)
-        if (child->type == CT_CON)
-            return child;
+    if (child->type == CT_CON)
+        return child;
 
-    ELOG("output_get_content() called on non-output %p\n", output);
-    assert(false);
+    return NULL;
 }