Skip to content
Permalink
Browse files

Fix typo in macro name.

  • Loading branch information...
dwsteele committed May 30, 2019
1 parent a2ec125 commit 3a5fd7b28a79c1564ddd2b5bad36d4d4be358453
Showing with 5 additions and 5 deletions.
  1. +1 −1 libc/LibC.h
  2. +1 −1 libc/xs/crypto/cipherBlock.xs
  3. +1 −1 libc/xs/crypto/hash.xs
  4. +2 −2 src/perl/libc.auto.c
@@ -123,7 +123,7 @@ Simplifies creation of the memory context in contructors and includes error hand
} \
}

#define MEM_COMTEXT_XS() \
#define MEM_CONTEXT_XS() \
MEM_CONTEXT_XS_memContext

/***********************************************************************************************************************************
@@ -29,7 +29,7 @@ CODE:
MEM_CONTEXT_XS_NEW_BEGIN("cipherBlockXs")
{
RETVAL = memNew(sizeof(CipherBlockXs));
RETVAL->memContext = MEM_COMTEXT_XS();
RETVAL->memContext = MEM_CONTEXT_XS();

RETVAL->pxPayload = cipherBlockNew(mode, cipherType(STR(type)), BUF(key, keySize), digest == NULL ? NULL : STR(digest));
}
@@ -20,7 +20,7 @@ CODE:
MEM_CONTEXT_XS_NEW_BEGIN("cryptoHashXs")
{
RETVAL = memNew(sizeof(CryptoHashXs));
RETVAL->memContext = MEM_COMTEXT_XS();
RETVAL->memContext = MEM_CONTEXT_XS();
RETVAL->pxPayload = cryptoHashNew(strNew(type));
}
MEM_CONTEXT_XS_NEW_END();
@@ -446,7 +446,7 @@ XS_EUPXS(XS_pgBackRest__LibC__Crypto__Hash_new)
MEM_CONTEXT_XS_NEW_BEGIN("cryptoHashXs")
{
RETVAL = memNew(sizeof(CryptoHashXs));
RETVAL->memContext = MEM_COMTEXT_XS();
RETVAL->memContext = MEM_CONTEXT_XS();
RETVAL->pxPayload = cryptoHashNew(strNew(type));
}
MEM_CONTEXT_XS_NEW_END();
@@ -633,7 +633,7 @@ XS_EUPXS(XS_pgBackRest__LibC__Cipher__Block_new)
MEM_CONTEXT_XS_NEW_BEGIN("cipherBlockXs")
{
RETVAL = memNew(sizeof(CipherBlockXs));
RETVAL->memContext = MEM_COMTEXT_XS();
RETVAL->memContext = MEM_CONTEXT_XS();

RETVAL->pxPayload = cipherBlockNew(mode, cipherType(STR(type)), BUF(key, keySize), digest == NULL ? NULL : STR(digest));
}

0 comments on commit 3a5fd7b

Please sign in to comment.
You can’t perform that action at this time.