From 1840caf7684adce2c7a7e7308838756c9e3c85e6 Mon Sep 17 00:00:00 2001 From: b1tg Date: Sat, 10 Aug 2024 23:10:33 +0800 Subject: [PATCH] Fix format --- clamonacc/inotif/hash.c | 2 +- clamonacc/inotif/inotif.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clamonacc/inotif/hash.c b/clamonacc/inotif/hash.c index 6bc155fc3a..7f84a75138 100644 --- a/clamonacc/inotif/hash.c +++ b/clamonacc/inotif/hash.c @@ -262,7 +262,7 @@ int onas_ht_insert(struct onas_ht *ht, struct onas_element *elem) bckt = ht->htable[idx]; } - /* Init activated buckets */ + /* Init activated buckets */ if (ht->nbckts == 0) { ht->head = bckt; ht->tail = bckt; diff --git a/clamonacc/inotif/inotif.c b/clamonacc/inotif/inotif.c index 96fa97b893..ca7db761c9 100644 --- a/clamonacc/inotif/inotif.c +++ b/clamonacc/inotif/inotif.c @@ -154,7 +154,7 @@ int onas_ddd_init(uint64_t nwatches, size_t ht_size) if (ret < 0) return CL_EREAD; tmp = strtol(nwatch_str, &p, 10); - if (tmp < 0 || tmp == LONG_MAX){ + if (tmp < 0 || tmp == LONG_MAX) { /*Seems like a sane value (also the value on my ubuntu system)*/ nwatches = 0x10000; } else { @@ -532,7 +532,7 @@ void *onas_ddd_th(void *arg) if ((pt = optget(ctx->clamdopts, "OnAccessExcludePath"))->enabled) { while (pt) { struct onas_bucket *ob = ddd_ht->head; - /* Iterate through the activated buckets to find matched paths */ + /* Iterate through the activated buckets to find matched paths */ while (ob != NULL) { struct onas_element *oe = ob->head; while (oe != NULL) {