]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2007-06-12 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Tue, 12 Jun 2007 14:23:12 +0000 (14:23 +0000)
committerrobertmh <robertmh@localhost>
Tue, 12 Jun 2007 14:23:12 +0000 (14:23 +0000)
* normal/command.c (grub_command_execute): Use NULL rather than 0 for
"pager" assignment.
* util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
"pcdata".
* util/grub-probe.c (probe): Likewise for "drive_name".

ChangeLog
normal/command.c
util/biosdisk.c
util/grub-probe.c

index febea88a0700002b97a3b58c5b9d062001525757..829f69f8649be5c2753cd9ab9cfaa302965530ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-06-12  Robert Millan  <rmh@aybabtu.com>
+
+       * normal/command.c (grub_command_execute): Use NULL rather than 0 for
+       "pager" assignment.
+       * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
+       "pcdata".
+       * util/grub-probe.c (probe): Likewise for "drive_name".
+
 2007-06-11  Robert Millan  <rmh@aybabtu.com>
 
        * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
index 43d1cf09def8deb5e0018270c09f786a4f9e6516..e56cb6b02e3682c39f72f8486f62c1676b13035c 100644 (file)
@@ -203,7 +203,7 @@ grub_command_execute (char *cmdline, int interactive)
   if (interactive)
     pager = grub_env_get ("pager");
   else
-    pager = 0;
+    pager = NULL;
   if (pager && (! grub_strcmp (pager, "1")))
     grub_set_more (1);
 
index 469c2b13b985915baa50d385078fd35ce5439e16..e7506307631269aa4e79f2b0d4d4606ac67c5af4 100644 (file)
@@ -732,7 +732,7 @@ grub_util_biosdisk_get_grub_dev (const char *os_dev)
     int find_partition (grub_disk_t disk __attribute__ ((unused)),
                        const grub_partition_t partition)
       {
-       struct grub_pc_partition *pcdata = 0;
+       struct grub_pc_partition *pcdata = NULL;
 
        if (strcmp (partition->partmap->name, "pc_partition_map") == 0)
          pcdata = partition->data;
index 26c47f243d81eb7cba99c27b8ba18e1cfbe3e831..d2ee69fe335673d3c4748a38252f9f145795247e 100644 (file)
@@ -81,7 +81,7 @@ static void
 probe (const char *path)
 {
   char *device_name;
-  char *drive_name = 0;
+  char *drive_name = NULL;
   grub_device_t dev;
   grub_fs_t fs;