diff options
author | hunt <hunt> | 2005-10-26 17:39:37 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-10-26 17:39:37 +0000 |
commit | 09457c514acf2fb00dbe5015362695dee8270a04 (patch) | |
tree | 14d61c96ce9daef28fb44d66d5b88e588c58fde6 /runtime/map-gen.c | |
parent | e410f5355199535bca6cd1db01966312c8c9c7b5 (diff) | |
download | systemtap-steved-09457c514acf2fb00dbe5015362695dee8270a04.tar.gz systemtap-steved-09457c514acf2fb00dbe5015362695dee8270a04.tar.xz systemtap-steved-09457c514acf2fb00dbe5015362695dee8270a04.zip |
2005-10-26 Martin Hunt <hunt@redhat.com>
* map-gen.c (KEY4CPY): Fix typo.
(KEYCPY): Add missing semicolon.
Diffstat (limited to 'runtime/map-gen.c')
-rw-r--r-- | runtime/map-gen.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/map-gen.c b/runtime/map-gen.c index 418b5d52..ffb77660 100644 --- a/runtime/map-gen.c +++ b/runtime/map-gen.c @@ -133,7 +133,7 @@ #define KEY4NAME int64 #define KEY4N i #define KEY4STOR int64_t key4 -#define KEY4CPY(4) m->key4=key4 +#define KEY4CPY(m) m->key4=key4 #endif #define KEY4_EQ_P JOIN(KEY4NAME,eq_p) #define KEY4_HASH JOIN(KEY4NAME,hash) @@ -178,7 +178,7 @@ #define KEYSYM(x) JOIN5(x,KEY1N,KEY2N,KEY3N,KEY4N,VALN) #define ALLKEYS(x) x##1, x##2, x##3, x##4 #define ALLKEYSD(x) KEY1TYPE x##1, KEY2TYPE x##2, KEY3TYPE x##3, KEY4TYPE x##4 -#define KEYCPY(m) {KEY1CPY(m);KEY2CPY(m);KEY3CPY(m);KEY4CPY(m)} +#define KEYCPY(m) {KEY1CPY(m);KEY2CPY(m);KEY3CPY(m);KEY4CPY(m);} #elif KEY_ARITY == 5 #define KEYSYM(x) JOIN6(x,KEY1N,KEY2N,KEY3N,KEY4N,KEY5N,VALN) #define ALLKEYS(x) x##1, x##2, x##3, x##4, x##5 @@ -445,9 +445,7 @@ int KEYSYM(__stp_map_set) (MAP map, ALLKEYSD(key), VSTYPE val, int add) n = (struct KEYSYM(map_node)*)_new_map_create (map, head); if (n == NULL) return -1; - dbug("keycpy\n"); KEYCPY(n); - dbug("done\n"); #if VALUE_TYPE == STAT return _new_map_set_stat(map,(struct map_node *)n, val, add, 1); #else |