Skip to contentSkip to conversation

pseudo_db: add missing stdint include

PATCH New Ross Burton 1 participant 2 messages Nov 6, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 pseudo_db: add missing stdint include

---
 pseudo_db.c | 1 +
 1 file changed, 1 insertion(+)
pseudo_db.c +1 -0
index 0994048..31f4dc4 100644
@@ -18,6 +18,7 @@
  *
  */
 #include <stdio.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/2 pseudo_client: move fallthrough comment to silence compiler warning

---
 pseudo_client.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
pseudo_client.c +2 -1
index 5604cbf..e2ea715 100644
@@ -1783,7 +1783,8 @@ pseudo_client_op(pseudo_op_t op, int access, int fd, int dirfd, const char *path
 		break;
 	case OP_OPEN:
 		pseudo_client_path(fd, path);
-	case OP_EXEC: /* fallthrough */
+		/* fallthrough */
+	case OP_EXEC:
 		do_request = pseudo_client_logging;
 		break;
 	case OP_CLOSE:
Signature · 1 line
2.11.0