• Adam Wujek's avatar
    lib/snmp: fix warnings about field offset in a structure · e2af2754
    Adam Wujek authored
    In wrpc's SNMP we store an offset between beginning of a structure and
    particullar field. To save memory we store this offset as a uint8_t, which
    limits the offset of a filed to 255 bytes. It was necessary to move following
    fields below 255 offset:
    --n_err_state
    --n_err_offset
    --n_err_delta_rtt
    
    Compiling wrpc-sw with an offset greater than 255, a compiler prints warnings
    like:
    lib/snmp.c:405:2: warning: large integer implicitly truncated to unsigned type
    Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
    e2af2754
Name
Last commit
Last update
arch/lm32 Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
host Loading commit data...
include Loading commit data...
ipc Loading commit data...
lib Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ 62e4d20d
scripts Loading commit data...
sdb-lib Loading commit data...
shell Loading commit data...
softpll Loading commit data...
test/snmp Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
check-error.c Loading commit data...
compare_size.sh Loading commit data...
dump-info.c Loading commit data...
revision.c Loading commit data...
save_size.sh Loading commit data...
system_checks.c Loading commit data...
wrc_main.c Loading commit data...
wrs_main.c Loading commit data...