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

Commit a9b39c03 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "remove spurious 'struct' on Stats" am: 34ad9039 am: 39b66243 am: 42ad8ec6

Change-Id: I7d6cb9ec24cb3012f445a46c746c5f8009bacc35
parents 4caa8693 42ad8ec6
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ enum StatsType {
    TCP_TX_PACKETS = 5
};

static uint64_t getStatsType(struct Stats* stats, StatsType type) {
static uint64_t getStatsType(Stats* stats, StatsType type) {
    switch (type) {
        case RX_BYTES:
            return stats->rxBytes;
@@ -73,7 +73,7 @@ static uint64_t getStatsType(struct Stats* stats, StatsType type) {
    }
}

static int parseIfaceStats(const char* iface, struct Stats* stats) {
static int parseIfaceStats(const char* iface, Stats* stats) {
    FILE *fp = fopen(QTAGUID_IFACE_STATS, "r");
    if (fp == NULL) {
        return -1;
@@ -117,7 +117,7 @@ static int parseIfaceStats(const char* iface, struct Stats* stats) {
    return 0;
}

static int parseUidStats(const uint32_t uid, struct Stats* stats) {
static int parseUidStats(const uint32_t uid, Stats* stats) {
    FILE *fp = fopen(QTAGUID_UID_STATS, "r");
    if (fp == NULL) {
        return -1;
@@ -150,7 +150,7 @@ static int parseUidStats(const uint32_t uid, struct Stats* stats) {
}

static jlong getTotalStat(JNIEnv* env, jclass clazz, jint type, jboolean useBpfStats) {
    struct Stats stats;
    Stats stats;
    memset(&stats, 0, sizeof(Stats));

    if (useBpfStats) {
@@ -175,7 +175,7 @@ static jlong getIfaceStat(JNIEnv* env, jclass clazz, jstring iface, jint type,
        return UNKNOWN;
    }

    struct Stats stats;
    Stats stats;
    memset(&stats, 0, sizeof(Stats));

    if (useBpfStats) {
@@ -194,7 +194,7 @@ static jlong getIfaceStat(JNIEnv* env, jclass clazz, jstring iface, jint type,
}

static jlong getUidStat(JNIEnv* env, jclass clazz, jint uid, jint type, jboolean useBpfStats) {
    struct Stats stats;
    Stats stats;
    memset(&stats, 0, sizeof(Stats));

    if (useBpfStats) {