From: zsugabubus Date: Mon, 27 Jan 2020 16:13:11 +0000 (+0000) Subject: Remove trailing comma in enums (#494) X-Git-Tag: fuse-3.9.1~9 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=38c9cb43787bf83ca4e9c9af707e82165de99008;p=qemu-gpiodev%2Flibfuse.git Remove trailing comma in enums (#494) They are illegal in C89/90. --- diff --git a/include/fuse.h b/include/fuse.h index 4d5a175..3df61b1 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -48,7 +48,7 @@ enum fuse_readdir_flags { * FUSE_FILL_DIR_FLAGS for the filler function. The filesystem may also * just ignore this flag completely. */ - FUSE_READDIR_PLUS = (1 << 0), + FUSE_READDIR_PLUS = (1 << 0) }; enum fuse_fill_dir_flags { @@ -61,7 +61,7 @@ enum fuse_fill_dir_flags { * It is okay to set FUSE_FILL_DIR_PLUS if FUSE_READDIR_PLUS is not set * and vice versa. */ - FUSE_FILL_DIR_PLUS = (1 << 1), + FUSE_FILL_DIR_PLUS = (1 << 1) }; /** Function to add an entry in a readdir() operation diff --git a/include/fuse_common.h b/include/fuse_common.h index 53d8b8a..39937d3 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -635,7 +635,7 @@ enum fuse_buf_flags { * until .size bytes have been copied or an error or EOF is * detected. */ - FUSE_BUF_FD_RETRY = (1 << 3), + FUSE_BUF_FD_RETRY = (1 << 3) }; /** @@ -677,7 +677,7 @@ enum fuse_buf_copy_flags { * is full or empty). See SPLICE_F_NONBLOCK in the splice(2) * man page. */ - FUSE_BUF_SPLICE_NONBLOCK= (1 << 4), + FUSE_BUF_SPLICE_NONBLOCK= (1 << 4) }; /** diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h index 2971d29..018a00a 100644 --- a/include/fuse_kernel.h +++ b/include/fuse_kernel.h @@ -424,7 +424,7 @@ enum fuse_opcode { FUSE_COPY_FILE_RANGE = 47, /* CUSE specific operations */ - CUSE_INIT = 4096, + CUSE_INIT = 4096 }; enum fuse_notify_code { @@ -434,7 +434,7 @@ enum fuse_notify_code { FUSE_NOTIFY_STORE = 4, FUSE_NOTIFY_RETRIEVE = 5, FUSE_NOTIFY_DELETE = 6, - FUSE_NOTIFY_CODE_MAX, + FUSE_NOTIFY_CODE_MAX }; /* The read buffer is required to be at least 8k, but may be much larger */