summaryrefslogtreecommitdiff
path: root/cesar/lib/src
diff options
context:
space:
mode:
authorThierry Carré2011-10-13 16:13:27 +0200
committerThierry Carré2011-10-20 10:46:36 +0200
commitda6dab42f85f6ed00b12e7c3196b791058c3cb01 (patch)
treebd79950e336857a72814badba1dc9cfa86fe8ed3 /cesar/lib/src
parent8563c98f11d1704bc8289f7ccc4026d4523f7b29 (diff)
cesar/{common,cp}: remove a define unused, and rename the second.
Diffstat (limited to 'cesar/lib/src')
-rw-r--r--cesar/lib/src/stats.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cesar/lib/src/stats.c b/cesar/lib/src/stats.c
index 26fbb0985a..f355fce906 100644
--- a/cesar/lib/src/stats.c
+++ b/cesar/lib/src/stats.c
@@ -16,6 +16,7 @@
#include "stats.h"
#include "slab.h"
+#include "common/defs/ethernet.h"
#include "common/defs/homeplugAV.h"
#include <string.h>
@@ -560,7 +561,7 @@ lib_stats_write_stats (const char *stats)
{
/* Check parameter. */
dbg_assert (stats);
- dbg_assert (strlen (stats) < HPAV_MME_PAYLOAD_MAX_SIZE);
+ dbg_assert (strlen (stats) < HPAV_MME_PAYLOAD_MAX_SIZE_WITHOUT_VLAN);
/* Empty string is tolerated. */
if (stats[0] == '\0')
@@ -568,7 +569,7 @@ lib_stats_write_stats (const char *stats)
const char delim[] = " ";
char *stat;
- char copy_stats[HPAV_MME_PAYLOAD_MAX_SIZE];
+ char copy_stats[HPAV_MME_PAYLOAD_MAX_SIZE_WITHOUT_VLAN];
/* Copy stats. */
strcpy (copy_stats, stats);