Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpanel Readd empty line - it's a part of style
details: https://anonhg.NetBSD.org/src/rev/1cdfc5e4e4c4
branches: trunk
changeset: 811504:1cdfc5e4e4c4
user: kamil <kamil%NetBSD.org@localhost>
date: Mon Nov 02 02:45:25 2015 +0000
description:
Readd empty line - it's a part of style
diffstat:
lib/libpanel/above.c | 5 +++--
lib/libpanel/bottom.c | 5 +++--
lib/libpanel/del.c | 5 +++--
lib/libpanel/hidden.c | 5 +++--
lib/libpanel/new.c | 5 +++--
lib/libpanel/replace.c | 5 +++--
lib/libpanel/show.c | 5 +++--
lib/libpanel/top.c | 5 +++--
lib/libpanel/window.c | 5 +++--
9 files changed, 27 insertions(+), 18 deletions(-)
diffs (234 lines):
diff -r f2348fe0c102 -r 1cdfc5e4e4c4 lib/libpanel/above.c
--- a/lib/libpanel/above.c Mon Nov 02 01:06:15 2015 +0000
+++ b/lib/libpanel/above.c Mon Nov 02 02:45:25 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: above.c,v 1.3 2015/11/02 01:06:15 kamil Exp $ */
+/* $NetBSD: above.c,v 1.4 2015/11/02 02:45:25 kamil Exp $ */
/*
* Copyright (c) 2015 Valery Ushakov
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: above.c,v 1.3 2015/11/02 01:06:15 kamil Exp $");
+__RCSID("$NetBSD: above.c,v 1.4 2015/11/02 02:45:25 kamil Exp $");
#include "panel_impl.h"
@@ -34,6 +34,7 @@
PANEL *
panel_above(PANEL *p)
{
+
if (p == NULL) {
if (TAILQ_EMPTY(&_deck))
return NULL;
diff -r f2348fe0c102 -r 1cdfc5e4e4c4 lib/libpanel/bottom.c
--- a/lib/libpanel/bottom.c Mon Nov 02 01:06:15 2015 +0000
+++ b/lib/libpanel/bottom.c Mon Nov 02 02:45:25 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bottom.c,v 1.2 2015/11/02 01:06:15 kamil Exp $ */
+/* $NetBSD: bottom.c,v 1.3 2015/11/02 02:45:25 kamil Exp $ */
/*
* Copyright (c) 2015 Valery Ushakov
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: bottom.c,v 1.2 2015/11/02 01:06:15 kamil Exp $");
+__RCSID("$NetBSD: bottom.c,v 1.3 2015/11/02 02:45:25 kamil Exp $");
#include "panel_impl.h"
@@ -34,6 +34,7 @@
int
bottom_panel(PANEL *p)
{
+
if (__predict_false(p == NULL))
return ERR;
diff -r f2348fe0c102 -r 1cdfc5e4e4c4 lib/libpanel/del.c
--- a/lib/libpanel/del.c Mon Nov 02 01:06:15 2015 +0000
+++ b/lib/libpanel/del.c Mon Nov 02 02:45:25 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: del.c,v 1.2 2015/11/02 01:06:15 kamil Exp $ */
+/* $NetBSD: del.c,v 1.3 2015/11/02 02:45:25 kamil Exp $ */
/*
* Copyright (c) 2015 Valery Ushakov
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: del.c,v 1.2 2015/11/02 01:06:15 kamil Exp $");
+__RCSID("$NetBSD: del.c,v 1.3 2015/11/02 02:45:25 kamil Exp $");
#include "panel_impl.h"
@@ -37,6 +37,7 @@
int
del_panel(PANEL *p)
{
+
if (__predict_false(p == NULL))
return ERR;
diff -r f2348fe0c102 -r 1cdfc5e4e4c4 lib/libpanel/hidden.c
--- a/lib/libpanel/hidden.c Mon Nov 02 01:06:15 2015 +0000
+++ b/lib/libpanel/hidden.c Mon Nov 02 02:45:25 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hidden.c,v 1.2 2015/11/02 01:06:15 kamil Exp $ */
+/* $NetBSD: hidden.c,v 1.3 2015/11/02 02:45:25 kamil Exp $ */
/*
* Copyright (c) 2015 Valery Ushakov
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: hidden.c,v 1.2 2015/11/02 01:06:15 kamil Exp $");
+__RCSID("$NetBSD: hidden.c,v 1.3 2015/11/02 02:45:25 kamil Exp $");
#include "panel_impl.h"
@@ -34,6 +34,7 @@
int
panel_hidden(PANEL *p)
{
+
if (p == NULL)
return ERR;
diff -r f2348fe0c102 -r 1cdfc5e4e4c4 lib/libpanel/new.c
--- a/lib/libpanel/new.c Mon Nov 02 01:06:15 2015 +0000
+++ b/lib/libpanel/new.c Mon Nov 02 02:45:25 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: new.c,v 1.2 2015/11/02 01:06:15 kamil Exp $ */
+/* $NetBSD: new.c,v 1.3 2015/11/02 02:45:25 kamil Exp $ */
/*
* Copyright (c) 2015 Valery Ushakov
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: new.c,v 1.2 2015/11/02 01:06:15 kamil Exp $");
+__RCSID("$NetBSD: new.c,v 1.3 2015/11/02 02:45:25 kamil Exp $");
#include "panel_impl.h"
@@ -54,6 +54,7 @@
PANEL *
new_panel(WINDOW *w)
{
+
if (__predict_false(w == NULL))
return NULL;
diff -r f2348fe0c102 -r 1cdfc5e4e4c4 lib/libpanel/replace.c
--- a/lib/libpanel/replace.c Mon Nov 02 01:06:15 2015 +0000
+++ b/lib/libpanel/replace.c Mon Nov 02 02:45:25 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: replace.c,v 1.2 2015/11/02 01:06:15 kamil Exp $ */
+/* $NetBSD: replace.c,v 1.3 2015/11/02 02:45:25 kamil Exp $ */
/*
* Copyright (c) 2015 Valery Ushakov
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: replace.c,v 1.2 2015/11/02 01:06:15 kamil Exp $");
+__RCSID("$NetBSD: replace.c,v 1.3 2015/11/02 02:45:25 kamil Exp $");
#include "panel_impl.h"
@@ -34,6 +34,7 @@
int
replace_panel(PANEL *p, WINDOW *w)
{
+
if (__predict_false(p == NULL || w == NULL))
return ERR;
diff -r f2348fe0c102 -r 1cdfc5e4e4c4 lib/libpanel/show.c
--- a/lib/libpanel/show.c Mon Nov 02 01:06:15 2015 +0000
+++ b/lib/libpanel/show.c Mon Nov 02 02:45:25 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: show.c,v 1.2 2015/11/02 01:06:15 kamil Exp $ */
+/* $NetBSD: show.c,v 1.3 2015/11/02 02:45:25 kamil Exp $ */
/*
* Copyright (c) 2015 Valery Ushakov
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: show.c,v 1.2 2015/11/02 01:06:15 kamil Exp $");
+__RCSID("$NetBSD: show.c,v 1.3 2015/11/02 02:45:25 kamil Exp $");
#include "panel_impl.h"
@@ -34,6 +34,7 @@
int
show_panel(PANEL *p)
{
+
if (__predict_false(p == NULL))
return ERR;
diff -r f2348fe0c102 -r 1cdfc5e4e4c4 lib/libpanel/top.c
--- a/lib/libpanel/top.c Mon Nov 02 01:06:15 2015 +0000
+++ b/lib/libpanel/top.c Mon Nov 02 02:45:25 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: top.c,v 1.2 2015/11/02 01:06:15 kamil Exp $ */
+/* $NetBSD: top.c,v 1.3 2015/11/02 02:45:25 kamil Exp $ */
/*
* Copyright (c) 2015 Valery Ushakov
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: top.c,v 1.2 2015/11/02 01:06:15 kamil Exp $");
+__RCSID("$NetBSD: top.c,v 1.3 2015/11/02 02:45:25 kamil Exp $");
#include "panel_impl.h"
@@ -34,6 +34,7 @@
int
top_panel(PANEL *p)
{
+
if (__predict_false(p == NULL))
return ERR;
diff -r f2348fe0c102 -r 1cdfc5e4e4c4 lib/libpanel/window.c
--- a/lib/libpanel/window.c Mon Nov 02 01:06:15 2015 +0000
+++ b/lib/libpanel/window.c Mon Nov 02 02:45:25 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: window.c,v 1.2 2015/11/02 01:06:15 kamil Exp $ */
+/* $NetBSD: window.c,v 1.3 2015/11/02 02:45:25 kamil Exp $ */
/*
* Copyright (c) 2015 Valery Ushakov
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: window.c,v 1.2 2015/11/02 01:06:15 kamil Exp $");
+__RCSID("$NetBSD: window.c,v 1.3 2015/11/02 02:45:25 kamil Exp $");
#include "panel_impl.h"
@@ -34,6 +34,7 @@
WINDOW *
panel_window(PANEL *p)
{
+
if (p == NULL)
return NULL;
Home |
Main Index |
Thread Index |
Old Index