logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0006-Avoid-conversion-between-function-and-object-pointer.patch (951B)


  1. From 31a2af8891c0d460942f0c182442615618248388 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Mon, 6 Sep 2021 23:27:23 -0700
  4. Subject: [PATCH] Avoid conversion between function and object pointer
  5. ---
  6. lib/fuse_lowlevel.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
  9. index a12f5cc..b864d90 100644
  10. --- a/lib/fuse_lowlevel.c
  11. +++ b/lib/fuse_lowlevel.c
  12. @@ -2496,7 +2496,7 @@ static struct {
  13. [FUSE_POLL] = { do_poll, "POLL" },
  14. [FUSE_FALLOCATE] = { do_fallocate, "FALLOCATE" },
  15. [FUSE_DESTROY] = { do_destroy, "DESTROY" },
  16. - [FUSE_NOTIFY_REPLY] = { (void *) 1, "NOTIFY_REPLY" },
  17. + [FUSE_NOTIFY_REPLY] = { (void (*)()) 1, "NOTIFY_REPLY" },
  18. [FUSE_BATCH_FORGET] = { do_batch_forget, "BATCH_FORGET" },
  19. [FUSE_READDIRPLUS] = { do_readdirplus, "READDIRPLUS"},
  20. [FUSE_RENAME2] = { do_rename2, "RENAME2" },
  21. --
  22. 2.32.0