aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV.Krishn <vkrishn4@gmail.com>2014-03-20 16:17:45 +0530
committerV.Krishn <vkrishn4@gmail.com>2014-03-20 16:17:45 +0530
commit8fef0e0efe6daf98f9d3e01b571218226c2a82a7 (patch)
treec47b447c082d67687bdbabe1af7b14d13f8ed1b9
parent8da2387f7ceb1fc22d30a435f3944cc350c02eb8 (diff)
downloadmqtt-dirpub-8fef0e0efe6daf98f9d3e01b571218226c2a82a7.tar.bz2
Code cleanv0.4.0
-rw-r--r--docs/release-note/0.4.0.md4
-rw-r--r--sub_client.c16
2 files changed, 4 insertions, 16 deletions
diff --git a/docs/release-note/0.4.0.md b/docs/release-note/0.4.0.md
new file mode 100644
index 0000000..59daf1e
--- /dev/null
+++ b/docs/release-note/0.4.0.md
@@ -0,0 +1,4 @@
+## mqtt-dirpub
+Release date: 2014-03-20
+* Updated difference from mosquitto.org(v1.3.0).
+* Code clean.
diff --git a/sub_client.c b/sub_client.c
index b504d09..f2da82f 100644
--- a/sub_client.c
+++ b/sub_client.c
@@ -295,11 +295,6 @@ void *_fmask(char *fmask, void *obj)
char *path, *prog;
path = strdup (fmask);
- prog = strdup (fmask);
- path = dirname (path);
- //ud->path = path;
- prog = basename (prog);
-
char *to = ud->ffmask; /* limit 1000 bytes. */
to = stpcpy (to, "/");
@@ -314,17 +309,6 @@ void *_fmask(char *fmask, void *obj)
to = stpcpy (to, "/");
}
- for (str2 = prog; ; str2 = NULL) {
- subtoken = strtok_r(str2, "@", &saveptr2);
- if (subtoken == NULL)
- break;
-
- /* format type */
- _setfmask(subtoken, ud);
- to = stpcpy (to, ud->ftoken);
- to = stpcpy (to, "-");
- }
-
to[strlen(to)-1] = '\0';
}