aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-03-04 17:59:15 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-03-04 17:59:15 +0100
commita7633d8abacca783e8b9640d3739ca3334ab9716 (patch)
treef4907f13acf13b8367086086604a2dd8f3f1f843
parentStart work on recuring events. (diff)
downloadcalp-a7633d8abacca783e8b9640d3739ca3334ab9716.tar.gz
calp-a7633d8abacca783e8b9640d3739ca3334ab9716.tar.xz
Change vendor attribute from HH to HNH.
-rw-r--r--graphs.c2
-rw-r--r--main.c4
-rw-r--r--parse.c2
-rw-r--r--vcal.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/graphs.c b/graphs.c
index 945821d7..4f1692ee 100644
--- a/graphs.c
+++ b/graphs.c
@@ -19,7 +19,7 @@ int create_graph_trie (vcomponent* ev, char* filename) {
fclose(f);
- INFO_F("Wrote '%s' to '%s'", vcomponent_get_val(ev, "X-HH-FILENAME"), filename);
+ INFO_F("Wrote '%s' to '%s'", vcomponent_get_val(ev, "X-HNH-FILENAME"), filename);
return 0;
}
diff --git a/main.c b/main.c
index 6cfeab75..771535fe 100644
--- a/main.c
+++ b/main.c
@@ -48,7 +48,7 @@ int main (int argc, char** argv) {
vcomponent* cal = GET(VECT(vcomponent))(&root.components, i);
assert(strcmp(cal->type, "VCALENDAR") == 0);
- char* filename = vcomponent_get_val(cal, "X-HH-FILENAME");
+ char* filename = vcomponent_get_val(cal, "X-HNH-FILENAME");
/* This loop over all VEVENT's in the current VCALENDAR */
for (size_t j = 0; j < cal->components.length; j++) {
@@ -74,7 +74,7 @@ int main (int argc, char** argv) {
char target[0xFF];
target[0] = '\0';
strcat(target, "/tmp/dot/");
- strcat(target, vcomponent_get_val(ev, "X-HH-FILENAME"));
+ strcat(target, vcomponent_get_val(ev, "X-HNH-FILENAME"));
strcat(target, ".dot");
// create_graph(ev, target);
}
diff --git a/parse.c b/parse.c
index 97e63305..702d7d9a 100644
--- a/parse.c
+++ b/parse.c
@@ -200,7 +200,7 @@ int handle_kv (
CLINE_CUR_VAL(cline)->mem,
vcomponent_get_val(
PEEK(LLIST(vcomponent))(&ctx->comp_stack),
- "X-HH-FILENAME"));
+ "X-HNH-FILENAME"));
PUSH(LLIST(strbuf))(&ctx->key_stack, expected_key);
return -1;
diff --git a/vcal.c b/vcal.c
index e93750ee..2c3ef7e1 100644
--- a/vcal.c
+++ b/vcal.c
@@ -45,7 +45,7 @@ INIT_F(vcomponent, const char* type, const char* filename) {
INIT(VECT(vcomponent), &self->components);
if (filename != NULL) {
- vcomponent_push_val (self, "X-HH-FILENAME", filename);
+ vcomponent_push_val (self, "X-HNH-FILENAME", filename);
}
self->type = (char*) calloc(sizeof(*type), strlen(type) + 1);