logo

oasis

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

0003-Use-bool-instead-of-gboolean.patch (826B)


  1. From 0ce03feec7e6efd23674fdb0d810f34c2ad79bf9 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Sun, 5 Jun 2016 17:28:40 -0700
  4. Subject: [PATCH] Use bool instead of gboolean
  5. ---
  6. sshfs.c | 3 ++-
  7. 1 file changed, 2 insertions(+), 1 deletion(-)
  8. diff --git a/sshfs.c b/sshfs.c
  9. index 92b893e..391afdd 100644
  10. --- a/sshfs.c
  11. +++ b/sshfs.c
  12. @@ -18,6 +18,7 @@
  13. # include <fuse_darwin.h>
  14. #endif
  15. #include <assert.h>
  16. +#include <stdbool.h>
  17. #include <stdio.h>
  18. #include <stdlib.h>
  19. #include <unistd.h>
  20. @@ -1902,7 +1903,7 @@ static int sftp_request_send(uint8_t type, struct iovec *iov, size_t count,
  21. err = -EIO;
  22. if (sftp_send_iov(type, req->id, iov, count) == -1) {
  23. - gboolean rmed;
  24. + bool rmed;
  25. pthread_mutex_lock(&sshfs.lock);
  26. rmed = !!request_table_lookup(&sshfs.reqtab, req->id);
  27. --
  28. 2.24.0