mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 19:36:20 +00:00
Applied coding style to src/
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user