summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Maciej Żenczykowski <maze@google.com> 2019-12-30 07:51:27 -0800
committer Maciej Żenczykowski <maze@google.com> 2019-12-30 20:49:27 +0000
commitd35c66f1728e599f2fdaf2e8d1ec54a0e02ff8ea (patch)
tree041d8394cdc745c363015f34de5a9c06bdccce07
parent8afb2bf120847f56b9e488624e5e527227e2c134 (diff)
remove spurious 'struct' on Stats
Test: builds, atest Bug: 146787904 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I824daf0ebdddbac1b11cabfcb248ee4134586768
-rw-r--r--services/core/jni/com_android_server_net_NetworkStatsService.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/services/core/jni/com_android_server_net_NetworkStatsService.cpp b/services/core/jni/com_android_server_net_NetworkStatsService.cpp
index 4d4a7b41643c..740c6183170e 100644
--- a/services/core/jni/com_android_server_net_NetworkStatsService.cpp
+++ b/services/core/jni/com_android_server_net_NetworkStatsService.cpp
@@ -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) {