Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
b1tg committed Aug 10, 2024
1 parent 378a44c commit 1840caf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clamonacc/inotif/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions clamonacc/inotif/inotif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 1840caf

Please sign in to comment.