summaryrefslogtreecommitdiff
path: root/vendor/github.com/DataDog/zstd/zbuff_common.c
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-06-20 17:52:57 -0700
committerGitHub <noreply@github.com>2019-06-20 17:52:57 -0700
commit86826629f736d31b7d6cdb92019078246b0f5f81 (patch)
tree5c7ee06150871158b76867e74937ddb7fe7b2bab /vendor/github.com/DataDog/zstd/zbuff_common.c
parent39d6a8619585114fa297ce2fd682befb5f81aaf7 (diff)
parent7e4d75eb8b74c62e44c7b1be93dd338695814c92 (diff)
downloadpodman-86826629f736d31b7d6cdb92019078246b0f5f81.tar.gz
podman-86826629f736d31b7d6cdb92019078246b0f5f81.tar.bz2
podman-86826629f736d31b7d6cdb92019078246b0f5f81.zip
Merge pull request #3388 from baude/openstackcs
vendor containers/storage v1.12.11
Diffstat (limited to 'vendor/github.com/DataDog/zstd/zbuff_common.c')
-rw-r--r--vendor/github.com/DataDog/zstd/zbuff_common.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/github.com/DataDog/zstd/zbuff_common.c b/vendor/github.com/DataDog/zstd/zbuff_common.c
new file mode 100644
index 000000000..661b9b0e1
--- /dev/null
+++ b/vendor/github.com/DataDog/zstd/zbuff_common.c
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under both the BSD-style license (found in the
+ * LICENSE file in the root directory of this source tree) and the GPLv2 (found
+ * in the COPYING file in the root directory of this source tree).
+ * You may select, at your option, one of the above-listed licenses.
+ */
+
+/*-*************************************
+* Dependencies
+***************************************/
+#include "error_private.h"
+#include "zbuff.h"
+
+/*-****************************************
+* ZBUFF Error Management (deprecated)
+******************************************/
+
+/*! ZBUFF_isError() :
+* tells if a return value is an error code */
+unsigned ZBUFF_isError(size_t errorCode) { return ERR_isError(errorCode); }
+/*! ZBUFF_getErrorName() :
+* provides error code string from function result (useful for debugging) */
+const char* ZBUFF_getErrorName(size_t errorCode) { return ERR_getErrorName(errorCode); }