]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-03-30 Pavel Roskin <proski@gnu.org>
authorproski <proski@localhost>
Sun, 30 Mar 2008 18:32:15 +0000 (18:32 +0000)
committerproski <proski@localhost>
Sun, 30 Mar 2008 18:32:15 +0000 (18:32 +0000)
* disk/host.c: Include grub/misc.h to fix a warning.
* util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
warnings about implicit declarations.

ChangeLog
disk/host.c
util/hostfs.c

index f505f94e2aa4f5407449ec9eaa00c929c8ba9885..404793544adb01eceb1bdc0eb7384cda951c1e75 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-03-30  Pavel Roskin  <proski@gnu.org>
 
+       * disk/host.c: Include grub/misc.h to fix a warning.
+       * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
+       warnings about implicit declarations.
+
        * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
        variable.
        * include/grub/i386/loader.h: Change declaration of
index 6767f5a3c21413c702fe54b4fb08fa61ae38b5e8..ccd41016930fa54d0128848d2cbf0b83157b5b23 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <grub/dl.h>
 #include <grub/disk.h>
+#include <grub/misc.h>
 
 int grub_disk_host_i_want_a_reference;
 
index 828fd9a3fd220683eed3fe8b4700d5ce8df4a8a5..b74fbd3ca2b4388865937224da8669f98fe31d72 100644 (file)
@@ -21,6 +21,7 @@
 #include <grub/file.h>
 #include <grub/disk.h>
 #include <grub/misc.h>
+#include <grub/dl.h>
 
 #include <dirent.h>
 #include <stdio.h>
@@ -151,14 +152,12 @@ static struct grub_fs grub_hostfs_fs =
 
 \f
 
-void
-grub_hostfs_init (void)
+GRUB_MOD_INIT(hostfs)
 {
   grub_fs_register (&grub_hostfs_fs);
 }
 
-void
-grub_hostfs_fini (void)
+GRUB_MOD_FINI(hostfs)
 {
   grub_fs_unregister (&grub_hostfs_fs);
 }