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/7629c13a2a1d
branches: trunk
changeset: 341362:7629c13a2a1d
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 dd3c574e7053 -r 7629c13a2a1d 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 dd3c574e7053 -r 7629c13a2a1d 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 dd3c574e7053 -r 7629c13a2a1d 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 dd3c574e7053 -r 7629c13a2a1d 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 dd3c574e7053 -r 7629c13a2a1d 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 dd3c574e7053 -r 7629c13a2a1d 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 dd3c574e7053 -r 7629c13a2a1d 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 dd3c574e7053 -r 7629c13a2a1d 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 dd3c574e7053 -r 7629c13a2a1d 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