summaryrefslogtreecommitdiff
path: root/src/errors.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2008-01-09 06:24:11 +0200
committerGuillem Jover <guillem@debian.org>2008-01-16 09:15:03 +0200
commit02680ecbbbf6da2b023891a11b38ecce5346dbbd (patch)
tree8e6c7cebb40ce85297bc13e0e68f4213c4a5dcd9 /src/errors.c
parentf52f2a333ef7609ddd7e9cab832f49295ff21dd9 (diff)
downloaddpkg-02680ecbbbf6da2b023891a11b38ecce5346dbbd.tar.gz
Use NULL instead of 0
Diffstat (limited to 'src/errors.c')
-rw-r--r--src/errors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/errors.c b/src/errors.c
index b87d850d9..ab2c9d272 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -46,7 +46,7 @@ struct error_report {
const char *what;
};
-static struct error_report *reports=0;
+static struct error_report *reports = NULL;
static struct error_report **lastreport= &reports;
static struct error_report emergency;
@@ -81,7 +81,7 @@ void print_error_perpackage(const char *emsg, const char *arg) {
nr= &emergency;
}
nr->what= arg;
- nr->next= 0;
+ nr->next = NULL;
*lastreport= nr;
lastreport= &nr->next;