summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Lemenkov <lemenkov@redhat.com>2016-09-21 17:46:21 +0200
committerPeter Lemenkov <lemenkov@redhat.com>2016-09-21 17:47:52 +0200
commit710f1896e2abc5a0d2eea5bb99f0e3e069ee616c (patch)
treee0c4837e2f682c6dd2104ba7aabe5f294cafc072
parenta1b6e244a122c4ccfa8d8e16ccd24ce1fd3109a2 (diff)
downloaderlang-sd_notify-710f1896e2abc5a0d2eea5bb99f0e3e069ee616c.tar.gz
Cosmetic
- A newline at the end of the file - Whitespace removal Signed-off-by: Peter Lemenkov <lemenkov@redhat.com>
-rw-r--r--c_src/sd_notify.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/c_src/sd_notify.c b/c_src/sd_notify.c
index d667fb2..ec77080 100644
--- a/c_src/sd_notify.c
+++ b/c_src/sd_notify.c
@@ -52,7 +52,6 @@ static ERL_NIF_TERM sd_pid_notify_nif(ErlNifEnv* env, int argc, const ERL_NIF_TE
unsigned int length = 0;
enif_get_list_length(env, argv[2], &length);
-
char* state = (char*)enif_alloc(++length);
enif_get_string(env, argv[1], state, length, ERL_NIF_LATIN1);
int result = sd_pid_notify(pid, unset_environment, state);
@@ -69,4 +68,4 @@ static ErlNifFunc nif_funcs[] =
};
-ERL_NIF_INIT(sd_notify, nif_funcs, NULL, NULL, NULL, NULL); \ No newline at end of file
+ERL_NIF_INIT(sd_notify, nif_funcs, NULL, NULL, NULL, NULL);