From f4d37838673f022c8c05c4beb5057bdb683a76ca Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 28 May 2017 10:37:06 +0100 Subject: [PATCH] misc: remove stray semicolons Signed-off-by: Sami Kerola --- lib/mbsalign.c | 2 +- libblkid/src/superblocks/adaptec_raid.c | 2 +- libmount/src/btrfs.c | 4 ++-- libmount/src/context_mount.c | 2 +- libmount/src/context_umount.c | 2 +- libsmartcols/src/column.c | 2 +- misc-utils/test_uuidd.c | 2 +- sys-utils/unshare.c | 2 +- term-utils/wall.c | 2 +- text-utils/column.c | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/mbsalign.c b/lib/mbsalign.c index 731320b07..b0e1004a0 100644 --- a/lib/mbsalign.c +++ b/lib/mbsalign.c @@ -206,7 +206,7 @@ size_t mbs_safe_encode_size(size_t bytes) char *mbs_safe_encode(const char *s, size_t *width) { size_t sz = s ? strlen(s) : 0; - char *buf, *ret = NULL;; + char *buf, *ret = NULL; if (!sz) return NULL; diff --git a/libblkid/src/superblocks/adaptec_raid.c b/libblkid/src/superblocks/adaptec_raid.c index 65fd5b8b4..5fc5fc4bc 100644 --- a/libblkid/src/superblocks/adaptec_raid.c +++ b/libblkid/src/superblocks/adaptec_raid.c @@ -91,7 +91,7 @@ static int probe_adraid(blkid_probe pr, off, sizeof(struct adaptec_metadata)); if (!ad) - return errno ? -errno : BLKID_PROBE_NONE;; + return errno ? -errno : BLKID_PROBE_NONE; if (ad->smagic != be32_to_cpu(AD_SIGNATURE)) return BLKID_PROBE_NONE; diff --git a/libmount/src/btrfs.c b/libmount/src/btrfs.c index e6e8aebff..71567e4ce 100644 --- a/libmount/src/btrfs.c +++ b/libmount/src/btrfs.c @@ -71,9 +71,9 @@ static inline uint##bits##_t btrfs_##name(const type *s) \ /* struct btrfs_disk_key */ BTRFS_SETGET_STACK_FUNCS(disk_key_objectid, struct btrfs_disk_key, - objectid, 64); + objectid, 64) -BTRFS_SETGET_STACK_FUNCS(stack_dir_name_len, struct btrfs_dir_item, name_len, 16); +BTRFS_SETGET_STACK_FUNCS(stack_dir_name_len, struct btrfs_dir_item, name_len, 16) /* Red Black Trees diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index 9caee70e5..2c5334217 100644 --- a/libmount/src/context_mount.c +++ b/libmount/src/context_mount.c @@ -1042,7 +1042,7 @@ int mnt_context_finalize_mount(struct libmnt_context *cxt) rc = mnt_context_prepare_update(cxt); if (!rc) - rc = mnt_context_update_tabs(cxt);; + rc = mnt_context_update_tabs(cxt); return rc; } diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c index 37fdf2668..0bee0278c 100644 --- a/libmount/src/context_umount.c +++ b/libmount/src/context_umount.c @@ -896,7 +896,7 @@ int mnt_context_finalize_umount(struct libmnt_context *cxt) rc = mnt_context_prepare_update(cxt); if (!rc) - rc = mnt_context_update_tabs(cxt);; + rc = mnt_context_update_tabs(cxt); return rc; } diff --git a/libsmartcols/src/column.c b/libsmartcols/src/column.c index ce1ed7e22..ba6c31920 100644 --- a/libsmartcols/src/column.c +++ b/libsmartcols/src/column.c @@ -304,7 +304,7 @@ size_t scols_wrapnl_chunksize(const struct libscols_column *cl __attribute__((un sz = mbs_safe_width(data); sum = max(sum, sz); - data = p;; + data = p; } return sum; diff --git a/misc-utils/test_uuidd.c b/misc-utils/test_uuidd.c index 9883cbf29..26751a485 100644 --- a/misc-utils/test_uuidd.c +++ b/misc-utils/test_uuidd.c @@ -143,7 +143,7 @@ static void *create_uuids(thread_t *th) object_uuid_create(obj); obj->tid = th->tid; obj->pid = th->proc->pid; - obj->idx = th->index + i;; + obj->idx = th->index + i; } return NULL; } diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c index 6c5c2e2f9..80fa0d356 100644 --- a/sys-utils/unshare.c +++ b/sys-utils/unshare.c @@ -308,7 +308,7 @@ int main(int argc, char *argv[]) int status; unsigned long propagation = UNSHARE_PROPAGATION_DEFAULT; uid_t real_euid = geteuid(); - gid_t real_egid = getegid();; + gid_t real_egid = getegid(); setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); diff --git a/term-utils/wall.c b/term-utils/wall.c index 44f9d5879..db85062a7 100644 --- a/term-utils/wall.c +++ b/term-utils/wall.c @@ -309,7 +309,7 @@ static void buf_printf(struct buffer *bs, const char *fmt, ...) buf_enlarge(bs, (size_t)rc + 1); limit = bs->sz - bs->used; va_start(ap, fmt); - rc = vsnprintf(bs->data + bs->used, limit, fmt, ap);; + rc = vsnprintf(bs->data + bs->used, limit, fmt, ap); va_end(ap); } diff --git a/text-utils/column.c b/text-utils/column.c index c036b4de8..1144ef87a 100644 --- a/text-utils/column.c +++ b/text-utils/column.c @@ -485,7 +485,7 @@ static void columnate_fillrows(struct column_control *ctl) ctl->maxlength = (ctl->maxlength + TABCHAR_CELLS) & ~(TABCHAR_CELLS - 1); numcols = ctl->termwidth / ctl->maxlength; endcol = ctl->maxlength; - for (chcnt = col = 0, lp = ctl->ents;; ++lp) { + for (chcnt = col = 0, lp = ctl->ents; /* nothing */; ++lp) { fputws(*lp, stdout); chcnt += width(*lp); if (!--ctl->nents)