Skip to content

Commit

Permalink
Specification: Remove redundant postfix from macro
Browse files Browse the repository at this point in the history
  • Loading branch information
sanssecours committed Jul 19, 2017
1 parent e4460ba commit 2a0f94b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/error/specification
Expand Up @@ -528,7 +528,7 @@ number:87
description:memory allocation error
severity:error
ingroup:plugin
macro:MALLOC_ERROR
macro:MALLOC

number:88
description:could not sync directory
Expand Down
5 changes: 2 additions & 3 deletions src/plugins/file/file.c
Expand Up @@ -63,8 +63,7 @@ int elektraFileGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned ELEKTRA_UN

if (!buffer)
{
ELEKTRA_SET_ERRORF (ELEKTRA_ERROR_MALLOC_ERROR, parentKey, "failed to allocate buffer of %lld bytes for %s", fileSize,
fileName);
ELEKTRA_SET_ERRORF (ELEKTRA_ERROR_MALLOC, parentKey, "failed to allocate buffer of %lld bytes for %s", fileSize, fileName);
return -1;
}

Expand Down Expand Up @@ -157,7 +156,7 @@ int elektraFileSet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned ELEKTRA_UN
unsigned char * value = elektraMalloc (valueSize);
if (!value)
{
ELEKTRA_SET_ERRORF (ELEKTRA_ERROR_MALLOC_ERROR, parentKey, "failed to allocate buffer of %zd bytes", valueSize);
ELEKTRA_SET_ERRORF (ELEKTRA_ERROR_MALLOC, parentKey, "failed to allocate buffer of %zd bytes", valueSize);
fclose (fp);
return -1;
}
Expand Down

0 comments on commit 2a0f94b

Please sign in to comment.