... | ... |
@@ -233,9 +233,9 @@ int command(client_conn_t *conn, int *virus) |
233 | 233 |
} |
234 | 234 |
pthread_mutex_unlock(&conn->thrpool->pool_mutex); |
235 | 235 |
if (ret) { |
236 |
- // multiscan has 1 control thread, so there needs to be at least |
|
237 |
- // 1 threads that is a non-multiscan controlthread to scan and |
|
238 |
- // make progress. |
|
236 |
+ /* multiscan has 1 control thread, so there needs to be at least |
|
237 |
+ 1 threads that is a non-multiscan controlthread to scan and |
|
238 |
+ make progress. */ |
|
239 | 239 |
logg("^Not enough threads for multiscan. Max: %d, Alive: %d, Multiscan: %d+1\n", |
240 | 240 |
max, alive, multiscan); |
241 | 241 |
conn_reply(conn, conn->filename, "Not enough threads for multiscan. Increase MaxThreads.", "ERROR"); |
... | ... |
@@ -111,7 +111,7 @@ static int cli_bytecode_context_reset(struct cli_bc_ctx *ctx) |
111 | 111 |
ctx->mpool = NULL; |
112 | 112 |
} |
113 | 113 |
#else |
114 |
- //TODO: implement for no-mmap case too |
|
114 |
+ /*TODO: implement for no-mmap case too*/ |
|
115 | 115 |
#endif |
116 | 116 |
return CL_SUCCESS; |
117 | 117 |
} |
... | ... |
@@ -437,7 +437,7 @@ static int parseHeader(struct cli_bc *bc, unsigned char *buffer, unsigned *linel |
437 | 437 |
cli_dbgmsg("Skipping bytecode with functionality level: %u\n", flevel); |
438 | 438 |
return CL_BREAK; |
439 | 439 |
} |
440 |
- // Optimistic parsing, check for error only at the end. |
|
440 |
+ /* Optimistic parsing, check for error only at the end.*/ |
|
441 | 441 |
bc->metadata.timestamp = readNumber(buffer, &offset, len, &ok); |
442 | 442 |
bc->metadata.sigmaker = readString(buffer, &offset, len, &ok); |
443 | 443 |
bc->metadata.targetExclude = readNumber(buffer, &offset, len, &ok); |
... | ... |
@@ -1321,7 +1321,7 @@ int cli_bytecode_load(struct cli_bc *bc, FILE *f, struct cli_dbio *dbio, int tru |
1321 | 1321 |
} |
1322 | 1322 |
break; |
1323 | 1323 |
} |
1324 |
- // fall-through |
|
1324 |
+ /* fall-through */ |
|
1325 | 1325 |
case PARSE_FUNC_HEADER: |
1326 | 1326 |
rc = parseFunctionHeader(bc, current_func, (unsigned char*)buffer); |
1327 | 1327 |
if (rc != CL_SUCCESS) { |
... | ... |
@@ -1399,7 +1399,6 @@ int cli_bytecode_run(const struct cli_all_bc *bcs, const struct cli_bc *bc, stru |
1399 | 1399 |
uint64_t cli_bytecode_context_getresult_int(struct cli_bc_ctx *ctx) |
1400 | 1400 |
{ |
1401 | 1401 |
return *(uint32_t*)ctx->values;/*XXX*/ |
1402 |
-// return ctx->values[ctx->numParams]; |
|
1403 | 1402 |
} |
1404 | 1403 |
|
1405 | 1404 |
void cli_bytecode_destroy(struct cli_bc *bc) |
... | ... |
@@ -1571,7 +1570,7 @@ static int cli_bytecode_prepare_interpreter(struct cli_bc *bc) |
1571 | 1571 |
break; |
1572 | 1572 |
case OP_BC_GEP1: |
1573 | 1573 |
case OP_BC_GEPZ: |
1574 |
- //three[0] is the type |
|
1574 |
+ /*three[0] is the type*/ |
|
1575 | 1575 |
MAP(inst->u.three[1]); |
1576 | 1576 |
MAP(inst->u.three[2]); |
1577 | 1577 |
break; |
... | ... |
@@ -1762,8 +1761,8 @@ void cli_bytecode_describe(const struct cli_bc *bc) |
1762 | 1762 |
printf("\tcompiled on: %s", |
1763 | 1763 |
cli_ctime(&stamp, buf, sizeof(buf))); |
1764 | 1764 |
printf("\tcompiled by: %s\n", bc->metadata.sigmaker ? bc->metadata.sigmaker : "N/A"); |
1765 |
- //TODO: parse and display arch name, also take it into account when |
|
1766 |
- //JITing! |
|
1765 |
+ /*TODO: parse and display arch name, also take it into account when |
|
1766 |
+ JITing*/ |
|
1767 | 1767 |
printf("\ttarget exclude: %d\n", bc->metadata.targetExclude); |
1768 | 1768 |
printf("\tbytecode type: "); |
1769 | 1769 |
switch (bc->kind) { |
... | ... |
@@ -59,7 +59,7 @@ int cli_bytecode_done_jit(struct cli_all_bc *allbc) |
59 | 59 |
} |
60 | 60 |
|
61 | 61 |
void cli_bytecode_debug(int argc, char **argv) { |
62 |
- // Empty |
|
62 |
+ /* Empty */ |
|
63 | 63 |
} |
64 | 64 |
|
65 | 65 |
int bytecode_init(void) |
... | ... |
@@ -68,7 +68,7 @@ int bytecode_init(void) |
68 | 68 |
} |
69 | 69 |
|
70 | 70 |
void cli_bytecode_debug_printsrc(const struct cli_bc_ctx *ctx) { |
71 |
- // Empty |
|
71 |
+ /* Empty */ |
|
72 | 72 |
} |
73 | 73 |
void cli_bytecode_printversion(void) { |
74 | 74 |
printf("LLVM not compiled in\n"); |
... | ... |
@@ -118,7 +118,7 @@ START_TEST (test_apicalls2) |
118 | 118 |
cl_init(CL_INIT_DEFAULT); |
119 | 119 |
if (have_clamjit)/*FIXME: should work with both */ |
120 | 120 |
runtest("input/apicalls2.cbc", 0xf00d, CL_SUCCESS, 0); |
121 |
-// runtest("input/apicalls2.cbc", 0xf00d, CL_SUCCESS, 1); |
|
121 |
+/* runtest("input/apicalls2.cbc", 0xf00d, CL_SUCCESS, 1); */ |
|
122 | 122 |
} |
123 | 123 |
END_TEST |
124 | 124 |
|