MINOR: samples: rename union from "data" to "u"
The union name "data" is a little bit heavy while we read the source
code because we can read "data.data.sint". The rename from "data" to "u"
makes the read easiest like "data.u.sint".
diff --git a/src/da.c b/src/da.c
index a2e78c6..7f507ea 100644
--- a/src/da.c
+++ b/src/da.c
@@ -147,8 +147,8 @@
tmp = get_trash_chunk();
chunk_reset(tmp);
- i = smp->data.data.str.len > sizeof(useragentbuf) ? sizeof(useragentbuf) : smp->data.data.str.len;
- memcpy(useragentbuf, smp->data.data.str.str, i - 1);
+ i = smp->data.u.str.len > sizeof(useragentbuf) ? sizeof(useragentbuf) : smp->data.u.str.len;
+ memcpy(useragentbuf, smp->data.u.str.str, i - 1);
useragentbuf[i - 1] = 0;
useragent = (const char *)useragentbuf;
@@ -211,8 +211,8 @@
tmp->str[tmp->len] = 0;
}
- smp->data.data.str.str = tmp->str;
- smp->data.data.str.len = strlen(tmp->str);
+ smp->data.u.str.str = tmp->str;
+ smp->data.u.str.len = strlen(tmp->str);
return 1;
}