diff options
Diffstat (limited to 'src/jsonapi/jsonapi_resource.c')
-rw-r--r-- | src/jsonapi/jsonapi_resource.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jsonapi/jsonapi_resource.c b/src/jsonapi/jsonapi_resource.c index 85bca10ee..be28ad5df 100644 --- a/src/jsonapi/jsonapi_resource.c +++ b/src/jsonapi/jsonapi_resource.c | |||
@@ -92,9 +92,9 @@ GNUNET_JSONAPI_resource_new (const char *type, const char *id) | |||
92 | { | 92 | { |
93 | struct GNUNET_JSONAPI_Resource *res; | 93 | struct GNUNET_JSONAPI_Resource *res; |
94 | 94 | ||
95 | if ( (NULL == type) || (0 == strlen (type)) ) | 95 | if (NULL == type) |
96 | return NULL; | 96 | return NULL; |
97 | if ( (NULL == id) || (0 == strlen (id)) ) | 97 | if (NULL == id) |
98 | return NULL; | 98 | return NULL; |
99 | 99 | ||
100 | res = GNUNET_new (struct GNUNET_JSONAPI_Resource); | 100 | res = GNUNET_new (struct GNUNET_JSONAPI_Resource); |
@@ -245,7 +245,7 @@ GNUNET_JSONAPI_resource_check_id (const struct GNUNET_JSONAPI_Resource *resource | |||
245 | * @param res the JSON resource | 245 | * @param res the JSON resource |
246 | * @return the resource id | 246 | * @return the resource id |
247 | */ | 247 | */ |
248 | char* | 248 | const char* |
249 | GNUNET_JSONAPI_resource_get_id (const struct GNUNET_JSONAPI_Resource *resource) | 249 | GNUNET_JSONAPI_resource_get_id (const struct GNUNET_JSONAPI_Resource *resource) |
250 | { | 250 | { |
251 | return resource->id; | 251 | return resource->id; |