{src,util}: Use NULL instead of 0 for pointer
Change-Id: I75fa4577055f25dde0a8b1044c005bba72cabd92 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26857 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
f061a73ab9
commit
1d3fde4693
|
@ -167,7 +167,7 @@ void print_guid_type_attributes(void *Hobptr)
|
||||||
void print_hob_type_structure(u16 Hobtype, void *Hoblistptr)
|
void print_hob_type_structure(u16 Hobtype, void *Hoblistptr)
|
||||||
{
|
{
|
||||||
u32 *Currenthob;
|
u32 *Currenthob;
|
||||||
u32 *Nexthob = 0;
|
u32 *Nexthob = NULL;
|
||||||
u8 Lasthob = 0;
|
u8 Lasthob = 0;
|
||||||
u32 Currenttype;
|
u32 Currenttype;
|
||||||
const char *Currenttypestr;
|
const char *Currenttypestr;
|
||||||
|
|
|
@ -409,7 +409,7 @@ gcov_exit(void)
|
||||||
gcov_position_t summary_pos = 0;
|
gcov_position_t summary_pos = 0;
|
||||||
gcov_position_t eof_pos = 0;
|
gcov_position_t eof_pos = 0;
|
||||||
const char *fname, *s;
|
const char *fname, *s;
|
||||||
struct gcov_fn_buffer *fn_buffer = 0;
|
struct gcov_fn_buffer *fn_buffer = NULL;
|
||||||
struct gcov_fn_buffer **fn_tail = &fn_buffer;
|
struct gcov_fn_buffer **fn_tail = &fn_buffer;
|
||||||
|
|
||||||
fname = gi_ptr->filename;
|
fname = gi_ptr->filename;
|
||||||
|
|
|
@ -157,7 +157,7 @@ static unsigned long times[4096];
|
||||||
static int run(int index)
|
static int run(int index)
|
||||||
{
|
{
|
||||||
int i, prev = 0;
|
int i, prev = 0;
|
||||||
struct iodef *id, *lastidread = 0;
|
struct iodef *id, *lastidread = NULL;
|
||||||
unsigned long u, t;
|
unsigned long u, t;
|
||||||
if (index >= niodefs)
|
if (index >= niodefs)
|
||||||
return index;
|
return index;
|
||||||
|
|
|
@ -236,7 +236,7 @@ static void GLIUInit(struct gliutable *gl)
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
static void GLPCIInit(void)
|
static void GLPCIInit(void)
|
||||||
{
|
{
|
||||||
struct gliutable *gl = 0;
|
struct gliutable *gl = NULL;
|
||||||
int i;
|
int i;
|
||||||
msr_t msr;
|
msr_t msr;
|
||||||
int msrnum, enable_preempt, enable_cpu_override;
|
int msrnum, enable_preempt, enable_cpu_override;
|
||||||
|
@ -604,7 +604,7 @@ static void rom_shadow_settings(void)
|
||||||
|
|
||||||
static void enable_L1_cache(void)
|
static void enable_L1_cache(void)
|
||||||
{
|
{
|
||||||
struct gliutable *gl = 0;
|
struct gliutable *gl = NULL;
|
||||||
int i;
|
int i;
|
||||||
msr_t msr;
|
msr_t msr;
|
||||||
uint8_t SysMemCacheProp;
|
uint8_t SysMemCacheProp;
|
||||||
|
|
|
@ -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 newl, cur_x, cur_y;
|
||||||
int prompt_len, room, wlen;
|
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);
|
strcpy(tempstr, prompt);
|
||||||
|
|
||||||
|
|
|
@ -1078,7 +1078,7 @@ static int do_match(int key, struct match_state *state, int *ans)
|
||||||
|
|
||||||
static void conf(struct menu *menu)
|
static void conf(struct menu *menu)
|
||||||
{
|
{
|
||||||
struct menu *submenu = 0;
|
struct menu *submenu = NULL;
|
||||||
const char *prompt = menu_get_prompt(menu);
|
const char *prompt = menu_get_prompt(menu);
|
||||||
struct symbol *sym;
|
struct symbol *sym;
|
||||||
int res;
|
int res;
|
||||||
|
@ -1245,7 +1245,7 @@ static void show_help(struct menu *menu)
|
||||||
static void conf_choice(struct menu *menu)
|
static void conf_choice(struct menu *menu)
|
||||||
{
|
{
|
||||||
const char *prompt = _(menu_get_prompt(menu));
|
const char *prompt = _(menu_get_prompt(menu));
|
||||||
struct menu *child = 0;
|
struct menu *child = NULL;
|
||||||
struct symbol *active;
|
struct symbol *active;
|
||||||
int selected_index = 0;
|
int selected_index = 0;
|
||||||
int last_top_row = 0;
|
int last_top_row = 0;
|
||||||
|
|
|
@ -43,7 +43,7 @@ class ConfigList : public QTreeWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
typedef class QTreeWidget Parent;
|
typedef class QTreeWidget Parent;
|
||||||
public:
|
public:
|
||||||
ConfigList(ConfigView* p, const char *name = 0);
|
ConfigList(ConfigView* p, const char *name = NULL);
|
||||||
void reinit(void);
|
void reinit(void);
|
||||||
ConfigView* parent(void) const
|
ConfigView* parent(void) const
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ class ConfigView : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
typedef class QWidget Parent;
|
typedef class QWidget Parent;
|
||||||
public:
|
public:
|
||||||
ConfigView(QWidget* parent, const char *name = 0);
|
ConfigView(QWidget* parent, const char *name = NULL);
|
||||||
~ConfigView(void);
|
~ConfigView(void);
|
||||||
static void updateList(ConfigItem* item);
|
static void updateList(ConfigItem* item);
|
||||||
static void updateListAll(void);
|
static void updateListAll(void);
|
||||||
|
@ -242,7 +242,7 @@ class ConfigInfoView : public QTextBrowser {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
typedef class QTextBrowser Parent;
|
typedef class QTextBrowser Parent;
|
||||||
public:
|
public:
|
||||||
ConfigInfoView(QWidget* parent, const char *name = 0);
|
ConfigInfoView(QWidget* parent, const char *name = NULL);
|
||||||
bool showDebug(void) const { return _showDebug; }
|
bool showDebug(void) const { return _showDebug; }
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
@ -272,7 +272,7 @@ class ConfigSearchWindow : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
typedef class QDialog Parent;
|
typedef class QDialog Parent;
|
||||||
public:
|
public:
|
||||||
ConfigSearchWindow(ConfigMainWindow* parent, const char *name = 0);
|
ConfigSearchWindow(ConfigMainWindow* parent, const char *name = NULL);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void saveSettings(void);
|
void saveSettings(void);
|
||||||
|
|
|
@ -1090,12 +1090,12 @@ regex_compile (pattern, size, syntax, bufp)
|
||||||
command. This makes it possible to tell if a new exact-match
|
command. This makes it possible to tell if a new exact-match
|
||||||
character can be added to that command or if the character requires
|
character can be added to that command or if the character requires
|
||||||
a new `exactn' command. */
|
a new `exactn' command. */
|
||||||
unsigned char *pending_exact = 0;
|
unsigned char *pending_exact = NULL;
|
||||||
|
|
||||||
/* Address of start of the most recently finished expression.
|
/* Address of start of the most recently finished expression.
|
||||||
This tells, e.g., postfix * where to find the start of its
|
This tells, e.g., postfix * where to find the start of its
|
||||||
operand. Reset at the beginning of groups and alternatives. */
|
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. */
|
/* Address of beginning of regexp, or inside of last group. */
|
||||||
unsigned char *begalt;
|
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
|
/* Address of the place where a forward jump should go to the end of
|
||||||
the containing expression. Each alternative of an `or' -- except the
|
the containing expression. Each alternative of an `or' -- except the
|
||||||
last -- ends with a forward jump of this sort. */
|
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
|
/* Counts open-groups as they are encountered. Remembered for the
|
||||||
matching close-group on the compile stack, so the same register
|
matching close-group on the compile stack, so the same register
|
||||||
|
|
|
@ -135,8 +135,8 @@ biosemu(u8 *biosmem, u32 biosmem_size, struct device * dev, unsigned long
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
char *absegname = 0;
|
char *absegname = NULL;
|
||||||
void *abseg = 0;
|
void *abseg = NULL;
|
||||||
int c, trace = 0;
|
int c, trace = 0;
|
||||||
unsigned char *cp;
|
unsigned char *cp;
|
||||||
char *filename;
|
char *filename;
|
||||||
|
|
Loading…
Reference in New Issue