summaryrefslogtreecommitdiff
path: root/print-decnet.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-02-25 11:04:39 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-02-25 20:58:27 +0100
commit5ae22f41a8e2152c8618227a0cc45b9de61a0f70 (patch)
treebd2eceb94241bd769a28d0422adb0e073ea140a9 /print-decnet.c
parent7780402e9f67ffe6b98274f16277c8db00d3a95f (diff)
downloadtcpdump-5ae22f41a8e2152c8618227a0cc45b9de61a0f70.tar.gz
Add a status exit code to the function ndo_error()
The status are defined in an enum in status-exit-codes.h. Moreover: Use ndo_error() instead of ndo_warning() for malloc() errors in print-esp.c.
Diffstat (limited to 'print-decnet.c')
-rw-r--r--print-decnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-decnet.c b/print-decnet.c
index ef610767..253d133d 100644
--- a/print-decnet.c
+++ b/print-decnet.c
@@ -1246,7 +1246,7 @@ dnnum_string(netdissect_options *ndo, u_short dnaddr)
/* malloc() return used by the 'dnaddrtable' hash table: do not free() */
str = (char *)malloc(siz = sizeof("00.0000"));
if (str == NULL)
- (*ndo->ndo_error)(ndo, "dnnum_string: malloc");
+ (*ndo->ndo_error)(ndo, S_ERR_ND_MEM_ALLOC, "dnnum_string: malloc");
nd_snprintf(str, siz, "%u.%u", area, node);
return(str);
}