diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-10-10 07:41:40 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-10-10 07:41:40 +0000 |
commit | c4f0be1e98d0b287524aad328a28aad5fd370c32 (patch) | |
tree | 248c8b2bb6888e5390fd5b2a3aa287e1b6ae0ca9 /src/experimentation | |
parent | 182a3bbbf20901b9b9e9e9d69d93b342ca9b005d (diff) | |
download | gnunet-c4f0be1e98d0b287524aad328a28aad5fd370c32.tar.gz gnunet-c4f0be1e98d0b287524aad328a28aad5fd370c32.zip |
fix indexing
Diffstat (limited to 'src/experimentation')
-rw-r--r-- | src/experimentation/gnunet-daemon-experimentation_capabilities.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/experimentation/gnunet-daemon-experimentation_capabilities.c b/src/experimentation/gnunet-daemon-experimentation_capabilities.c index 9752cf776..7d74c2827 100644 --- a/src/experimentation/gnunet-daemon-experimentation_capabilities.c +++ b/src/experimentation/gnunet-daemon-experimentation_capabilities.c | |||
@@ -40,7 +40,7 @@ uint32_t GSE_node_capabilities; | |||
40 | /** | 40 | /** |
41 | * Capabilities defined at the moment | 41 | * Capabilities defined at the moment |
42 | */ | 42 | */ |
43 | #define GNUNET_EXPERIMENTATION_capabilities_count 11; | 43 | #define GNUNET_EXPERIMENTATION_capabilities_count 11 |
44 | 44 | ||
45 | 45 | ||
46 | /** | 46 | /** |
@@ -71,7 +71,7 @@ GED_capability_to_str (uint32_t cap) | |||
71 | if (test != cap) | 71 | if (test != cap) |
72 | return "UNDEFINED"; | 72 | return "UNDEFINED"; |
73 | 73 | ||
74 | if (index <= 11) | 74 | if (index < GNUNET_EXPERIMENTATION_capabilities_count) |
75 | return capstr[index]; | 75 | return capstr[index]; |
76 | else | 76 | else |
77 | return "UNDEFINED"; | 77 | return "UNDEFINED"; |