Don't mark __res_params or android_net_context as packed.

Bug: http://b/31532493

These internal API structures are never actually used anywhere that
would change behavior because it is "packed", so it is safe to remove.

Test: Builds correctly with the latest toolchain.
Change-Id: I5431992d840777605be75ab91dc21158d6d22c26
This commit is contained in:
Stephen Hines 2017-01-25 00:39:47 -08:00
parent 37f1d11482
commit 9935e0fcee
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ struct android_net_context {
unsigned dns_netid;
unsigned dns_mark;
uid_t uid;
} __attribute__((packed));
};
#define NET_CONTEXT_INVALID_UID ((uid_t)-1)

View file

@ -41,6 +41,6 @@ struct __res_params {
uint8_t success_threshold; // 0: disable, value / 100 otherwise
uint8_t min_samples; // min # samples needed for statistics to be considered meaningful
uint8_t max_samples; // max # samples taken into account for statistics
} __attribute__((__packed__));
};
#endif // _RESOLV_PARAMS_H