Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 221badd0 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

am 7e72a693: Merge "Remove sscanf() warnings when parsing stats."

# Via Android (Google) Code Review (1) and Jeff Sharkey (1)
* commit '7e72a693':
  Remove sscanf() warnings when parsing stats.
parents 1f6692f1 7e72a693
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -87,8 +87,8 @@ static int parseIfaceStats(const char* iface, struct Stats* stats) {

    while (fgets(buffer, sizeof(buffer), fp) != NULL) {
        int matched = sscanf(buffer, "%31s %llu %llu %llu %llu "
                "%*llu %llu %*llu %*llu %*llu %*llu "
                "%*llu %llu %*llu %*llu %*llu %*llu", cur_iface, &rxBytes,
                "%*u %llu %*u %*u %*u %*u "
                "%*u %llu %*u %*u %*u %*u", cur_iface, &rxBytes,
                &rxPackets, &txBytes, &txPackets, &tcpRxPackets, &tcpTxPackets);
        if (matched >= 5) {
            if (matched == 7) {