summaryrefslogtreecommitdiff
path: root/xcursorgen.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-19 20:40:12 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-19 20:40:12 -0200
commitc4c3d77ea9a89b2c5c23518b5cf235d4f7e017bf (patch)
tree891570a593d7fb493475b05abadaf0f956f57eef /xcursorgen.c
parent5aca565a857da642bc3f9dc89e88bfa3c1b13f11 (diff)
Ansification and compile warning fixes.
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects make distcheck and all gcc 4.3 and sparse warnings.
Diffstat (limited to 'xcursorgen.c')
-rw-r--r--xcursorgen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xcursorgen.c b/xcursorgen.c
index 17902a0..fc80f6d 100644
--- a/xcursorgen.c
+++ b/xcursorgen.c
@@ -372,8 +372,8 @@ main (int argc, char *argv[])
{
struct flist *list;
int count;
- char *in = 0, *out = 0;
- char *prefix = 0;
+ char *in = NULL, *out = NULL;
+ char *prefix = NULL;
int i;
for (i = 1; i < argc; i++)
@@ -404,7 +404,7 @@ main (int argc, char *argv[])
if (strcmp (argv[i], "-p") == 0 || strcmp (argv[i], "--prefix") == 0)
{
i++;
- if (argv[i] == 0)
+ if (argv[i] == NULL)
{
usage (argv[0]);
return 1;