fix various compiler warnings
This commit is contained in:
parent
b506ce8b74
commit
234b56b477
|
@ -29,7 +29,6 @@ struct msgb *gen_log_config_set_mask(uint32_t equip_id, uint32_t last_item)
|
|||
{
|
||||
struct msgb *msg = msgb_alloc(DIAG_MAX_REQ_SIZE, "Diag Tx");
|
||||
struct diag_log_config_set_mask *dlcsm;
|
||||
uint8_t *mask;
|
||||
|
||||
msg->l2h = msgb_put(msg, sizeof(*dlcsm));
|
||||
dlcsm = (struct diag_log_config_set_mask *) msg->l2h;
|
||||
|
@ -44,7 +43,8 @@ struct msgb *gen_log_config_set_mask(uint32_t equip_id, uint32_t last_item)
|
|||
|
||||
int log_config_set_mask_bit(struct msgb *msg, uint32_t bit_in)
|
||||
{
|
||||
struct diag_log_config_set_mask *dlcsm = msg->l2h;
|
||||
struct diag_log_config_set_mask *dlcsm;
|
||||
dlcsm = (struct diag_log_config_set_mask *) msg->l2h;
|
||||
uint8_t *mask = msg->l3h;
|
||||
unsigned int byte = bit_in / 8;
|
||||
unsigned int bit = bit_in % 8;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "diagcmd.h"
|
||||
#include "diag_gsm.h"
|
||||
#include "protocol.h"
|
||||
|
||||
const struct value_string diag_gsm_rr_st_vals[] = {
|
||||
{ DIAG_RR_ST_INACTIVE, "INACTIVE" },
|
||||
|
@ -60,7 +61,7 @@ struct diag_gsm_log_packet_req {
|
|||
uint8_t addl_info;
|
||||
} __attribute__((packed));
|
||||
|
||||
int diag_gsm_make_log_pack_req(uint16_t log_code, uint8_t zero_stats, uint8_t addl_info)
|
||||
struct msgb *diag_gsm_make_log_pack_req(uint16_t log_code, uint8_t zero_stats, uint8_t addl_info)
|
||||
{
|
||||
struct msgb *msg = msgb_alloc_headroom(1024, 128, "GSM Log Packet Req");
|
||||
struct diag_gsm_log_packet_req *glpr;
|
||||
|
|
|
@ -115,4 +115,4 @@ struct diag_gprs_llc_stats {
|
|||
uint32_t llpdu_short_err;
|
||||
} __attribute__((packed));
|
||||
|
||||
int diag_gsm_make_log_pack_req(uint16_t log_code, uint8_t zero_stats, uint8_t addl_info);
|
||||
struct msgb *diag_gsm_make_log_pack_req(uint16_t log_code, uint8_t zero_stats, uint8_t addl_info);
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <errno.h>
|
||||
|
||||
#include <osmocom/core/msgb.h>
|
||||
#include <osmocom/core/serial.h>
|
||||
|
||||
#include "diag_io.h"
|
||||
#include "protocol.h"
|
||||
|
|
Loading…
Reference in New Issue