diff options
author | James Booth <boothj5@gmail.com> | 2015-10-26 00:52:33 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-10-26 00:52:33 +0000 |
commit | dd11334b06e11e26e925e289b84176911c05cd16 (patch) | |
tree | b5c305eb9f8859abea7667653d0da6e188b94d3c /src/resource.c | |
parent | c8a6bdb381c9a666fc340e8b7fc74100e7328d8c (diff) | |
download | profani-tty-dd11334b06e11e26e925e289b84176911c05cd16.tar.gz |
Applied coding style to src/
Diffstat (limited to 'src/resource.c')
-rw-r--r-- | src/resource.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resource.c b/src/resource.c index 1598c7b2..ec122e0a 100644 --- a/src/resource.c +++ b/src/resource.c @@ -39,8 +39,8 @@ #include <common.h> #include <resource.h> -Resource * resource_new(const char * const name, resource_presence_t presence, - const char * const status, const int priority) +Resource* +resource_new(const char *const name, resource_presence_t presence, const char *const status, const int priority) { assert(name != NULL); Resource *new_resource = malloc(sizeof(struct resource_t)); @@ -86,7 +86,8 @@ resource_compare_availability(Resource *first, Resource *second) } } -void resource_destroy(Resource *resource) +void +resource_destroy(Resource *resource) { if (resource) { free(resource->name); |