bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] fix compiler warnings in hurd/libdiskfs


From: Flavio Cruz
Subject: [PATCH] fix compiler warnings in hurd/libdiskfs
Date: Tue, 29 Dec 2015 22:36:01 +0100
User-agent: Mutt/1.5.24 (2015-08-30)

---

libdiskfs: Fix compiler warnings.

* libdiskfs/boot-start.c (diskfs_start_bootstrap): Cast to char * to make mig
happy.
* libdiskfs/dir-chg.c (diskfs_notice_dirchange): Likewise.

diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
index 731d8c6..60bf33d 100644
--- a/libdiskfs/boot-start.c
+++ b/libdiskfs/boot-start.c
@@ -228,8 +228,8 @@ diskfs_start_bootstrap ()
     }
 
  lookup_init:
-  err = dir_lookup (root_pt, initname, O_READ, 0,
-                   &retry, pathbuf, &startup_pt);
+  err = dir_lookup (root_pt, (char *) initname, O_READ, 0, &retry, pathbuf,
+                    &startup_pt);
   init_lookups++;
   if (err)
     {
diff --git a/libdiskfs/dir-chg.c b/libdiskfs/dir-chg.c
index ed8f40c..0657c45 100644
--- a/libdiskfs/dir-chg.c
+++ b/libdiskfs/dir-chg.c
@@ -68,7 +68,7 @@ diskfs_notice_dirchange (struct node *dp, enum 
dir_changed_type type,
   while (*preq)
     {
       struct modreq *req = *preq;
-      err = dir_changed (req->port, dp->dirmod_tick, type, name);
+      err = dir_changed (req->port, dp->dirmod_tick, type, (char *) name);
       if (err && err != MACH_SEND_TIMED_OUT)
        {
          /* Remove notify port.  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]