summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/kconfig/lxdialog/util.c2
-rw-r--r--util/kconfig/nconf.c4
-rw-r--r--util/kconfig/qconf.h8
-rw-r--r--util/kconfig/regex.c6
-rw-r--r--util/vgabios/testbios.c4
5 files changed, 12 insertions, 12 deletions
diff --git a/util/kconfig/lxdialog/util.c b/util/kconfig/lxdialog/util.c
index f7abdeb92a..69b2fb59ac 100644
--- a/util/kconfig/lxdialog/util.c
+++ b/util/kconfig/lxdialog/util.c
@@ -383,7 +383,7 @@ void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x)
{
int newl, cur_x, cur_y;
int prompt_len, room, wlen;
- char tempstr[MAX_LEN + 1], *word, *sp, *sp2, *newline_separator = 0;
+ char tempstr[MAX_LEN + 1], *word, *sp, *sp2, *newline_separator = NULL;
strcpy(tempstr, prompt);
diff --git a/util/kconfig/nconf.c b/util/kconfig/nconf.c
index f9944a64de..905dcd11bd 100644
--- a/util/kconfig/nconf.c
+++ b/util/kconfig/nconf.c
@@ -1078,7 +1078,7 @@ static int do_match(int key, struct match_state *state, int *ans)
static void conf(struct menu *menu)
{
- struct menu *submenu = 0;
+ struct menu *submenu = NULL;
const char *prompt = menu_get_prompt(menu);
struct symbol *sym;
int res;
@@ -1245,7 +1245,7 @@ static void show_help(struct menu *menu)
static void conf_choice(struct menu *menu)
{
const char *prompt = _(menu_get_prompt(menu));
- struct menu *child = 0;
+ struct menu *child = NULL;
struct symbol *active;
int selected_index = 0;
int last_top_row = 0;
diff --git a/util/kconfig/qconf.h b/util/kconfig/qconf.h
index a40036d1b0..676d88db3d 100644
--- a/util/kconfig/qconf.h
+++ b/util/kconfig/qconf.h
@@ -43,7 +43,7 @@ class ConfigList : public QTreeWidget {
Q_OBJECT
typedef class QTreeWidget Parent;
public:
- ConfigList(ConfigView* p, const char *name = 0);
+ ConfigList(ConfigView* p, const char *name = NULL);
void reinit(void);
ConfigView* parent(void) const
{
@@ -209,7 +209,7 @@ class ConfigView : public QWidget {
Q_OBJECT
typedef class QWidget Parent;
public:
- ConfigView(QWidget* parent, const char *name = 0);
+ ConfigView(QWidget* parent, const char *name = NULL);
~ConfigView(void);
static void updateList(ConfigItem* item);
static void updateListAll(void);
@@ -242,7 +242,7 @@ class ConfigInfoView : public QTextBrowser {
Q_OBJECT
typedef class QTextBrowser Parent;
public:
- ConfigInfoView(QWidget* parent, const char *name = 0);
+ ConfigInfoView(QWidget* parent, const char *name = NULL);
bool showDebug(void) const { return _showDebug; }
public slots:
@@ -272,7 +272,7 @@ class ConfigSearchWindow : public QDialog {
Q_OBJECT
typedef class QDialog Parent;
public:
- ConfigSearchWindow(ConfigMainWindow* parent, const char *name = 0);
+ ConfigSearchWindow(ConfigMainWindow* parent, const char *name = NULL);
public slots:
void saveSettings(void);
diff --git a/util/kconfig/regex.c b/util/kconfig/regex.c
index 428653ca9d..a6d947fbd0 100644
--- a/util/kconfig/regex.c
+++ b/util/kconfig/regex.c
@@ -1090,12 +1090,12 @@ regex_compile (pattern, size, syntax, bufp)
command. This makes it possible to tell if a new exact-match
character can be added to that command or if the character requires
a new `exactn' command. */
- unsigned char *pending_exact = 0;
+ unsigned char *pending_exact = NULL;
/* Address of start of the most recently finished expression.
This tells, e.g., postfix * where to find the start of its
operand. Reset at the beginning of groups and alternatives. */
- unsigned char *laststart = 0;
+ unsigned char *laststart = NULL;
/* Address of beginning of regexp, or inside of last group. */
unsigned char *begalt;
@@ -1107,7 +1107,7 @@ regex_compile (pattern, size, syntax, bufp)
/* Address of the place where a forward jump should go to the end of
the containing expression. Each alternative of an `or' -- except the
last -- ends with a forward jump of this sort. */
- unsigned char *fixup_alt_jump = 0;
+ unsigned char *fixup_alt_jump = NULL;
/* Counts open-groups as they are encountered. Remembered for the
matching close-group on the compile stack, so the same register
diff --git a/util/vgabios/testbios.c b/util/vgabios/testbios.c
index ba63ab3031..aedeb1d217 100644
--- a/util/vgabios/testbios.c
+++ b/util/vgabios/testbios.c
@@ -135,8 +135,8 @@ biosemu(u8 *biosmem, u32 biosmem_size, struct device * dev, unsigned long
int main(int argc, char **argv)
{
int ret;
- char *absegname = 0;
- void *abseg = 0;
+ char *absegname = NULL;
+ void *abseg = NULL;
int c, trace = 0;
unsigned char *cp;
char *filename;