arch/arm64: Support FEAT_CCIDX
[coreboot2.git] / util / kconfig / patches / 0004-src-util-Use-NULL-instead-of-0-for-pointer.patch
blobf451b58282c74572511ab48c7d8493c0b64e1724
1 From e8287a030fc8fcec7404aa6731aef21a48035786 Mon Sep 17 00:00:00 2001
2 From: Elyes HAOUAS <ehaouas@noos.fr>
3 Date: Tue, 5 Jun 2018 08:41:29 +0200
4 Subject: [PATCH] {src,util}: Use NULL instead of 0 for pointer
6 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
7 ---
8 util/kconfig/lxdialog/util.c | 2 +-
9 util/kconfig/qconf.h | 8 ++++----
10 2 files changed, 5 insertions(+), 5 deletions(-)
12 Index: kconfig/lxdialog/util.c
13 ===================================================================
14 --- kconfig.orig/lxdialog/util.c
15 +++ kconfig/lxdialog/util.c
16 @@ -370,7 +370,7 @@ void print_autowrap(WINDOW * win, const
18 int newl, cur_x, cur_y;
19 int prompt_len, room, wlen;
20 - char tempstr[MAX_LEN + 1], *word, *sp, *sp2, *newline_separator = 0;
21 + char tempstr[MAX_LEN + 1], *word, *sp, *sp2, *newline_separator = NULL;
23 strcpy(tempstr, prompt);
25 Index: kconfig/qconf.h
26 ===================================================================
27 --- kconfig.orig/qconf.h
28 +++ kconfig/qconf.h
29 @@ -42,7 +42,7 @@ class ConfigList : public QTreeWidget {
30 Q_OBJECT
31 typedef class QTreeWidget Parent;
32 public:
33 - ConfigList(QWidget *parent, const char *name = 0);
34 + ConfigList(QWidget *parent, const char *name = NULL);
35 ~ConfigList();
36 void reinit(void);
37 ConfigItem* findConfigItem(struct menu *);
38 @@ -188,7 +188,7 @@ class ConfigInfoView : public QTextBrows
39 typedef class QTextBrowser Parent;
40 QMenu *contextMenu;
41 public:
42 - ConfigInfoView(QWidget* parent, const char *name = 0);
43 + ConfigInfoView(QWidget* parent, const char *name = NULL);
44 bool showDebug(void) const { return _showDebug; }
46 public slots: