From: Michael Tremer Date: Wed, 9 Oct 2024 13:19:08 +0000 (+0000) Subject: transaction: Don't declare anything after the label X-Git-Tag: 0.9.30~1117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0b0201a5dfdb0f404737063c67fef3a7f22a0ae;p=pakfire.git transaction: Don't declare anything after the label Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/transaction.c b/src/libpakfire/transaction.c index e2bc303a1..4c30078eb 100644 --- a/src/libpakfire/transaction.c +++ b/src/libpakfire/transaction.c @@ -563,6 +563,8 @@ Solver* pakfire_transaction_get_solver(struct pakfire_transaction* transaction) PAKFIRE_EXPORT int pakfire_transaction_solve(struct pakfire_transaction* transaction, int flags, char** problems) { + clock_t solving_start; + clock_t solving_end; char* p = NULL; int solved = 0; int r; @@ -580,13 +582,13 @@ PAKFIRE_EXPORT int pakfire_transaction_solve(struct pakfire_transaction* transac RETRY: // Save time when we starting solving - clock_t solving_start = clock(); + solving_start = clock(); // Solve the request and get the number of problems r = solver_solve(transaction->solver, &transaction->jobs); // Save time when we finished solving - clock_t solving_end = clock(); + solving_end = clock(); DEBUG(transaction->pakfire, "Solved request in %.4fms\n", (double)(solving_end - solving_start) * 1000 / CLOCKS_PER_SEC);