mirror of
https://github.com/vgough/encfs.git
synced 2024-11-21 23:43:26 +01:00
Correct unnecessary-value-param clang warnings
This commit is contained in:
parent
1254c686ea
commit
a3d6b6f313
@ -252,7 +252,7 @@ bool B64StandardDecode(unsigned char *out, const unsigned char *in, int inLen) {
|
|||||||
// If you want to use an alternate alphabet, change the characters here
|
// If you want to use an alternate alphabet, change the characters here
|
||||||
const static char encodeLookup[] =
|
const static char encodeLookup[] =
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||||
std::string B64StandardEncode(std::vector<unsigned char> inputBuffer) {
|
std::string B64StandardEncode(const std::vector<unsigned char> &inputBuffer) {
|
||||||
std::string encodedString;
|
std::string encodedString;
|
||||||
encodedString.reserve(B256ToB64Bytes(inputBuffer.size()));
|
encodedString.reserve(B256ToB64Bytes(inputBuffer.size()));
|
||||||
long temp;
|
long temp;
|
||||||
|
@ -73,7 +73,7 @@ void AsciiToB32(unsigned char *out, const unsigned char *in, int length);
|
|||||||
bool B64StandardDecode(unsigned char *out, const unsigned char *in,
|
bool B64StandardDecode(unsigned char *out, const unsigned char *in,
|
||||||
int inputLen);
|
int inputLen);
|
||||||
|
|
||||||
std::string B64StandardEncode(std::vector<unsigned char> input);
|
std::string B64StandardEncode(const std::vector<unsigned char> &input);
|
||||||
|
|
||||||
} // namespace encfs
|
} // namespace encfs
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ static void checkCanary(const std::shared_ptr<FileNode> &fnode) {
|
|||||||
// helper function -- apply a functor to a node
|
// helper function -- apply a functor to a node
|
||||||
static int withFileNode(const char *opName, const char *path,
|
static int withFileNode(const char *opName, const char *path,
|
||||||
struct fuse_file_info *fi,
|
struct fuse_file_info *fi,
|
||||||
function<int(FileNode *)> op) {
|
const function<int(FileNode *)> &op) {
|
||||||
EncFS_Context *ctx = context();
|
EncFS_Context *ctx = context();
|
||||||
|
|
||||||
int res = -EIO;
|
int res = -EIO;
|
||||||
|
Loading…
Reference in New Issue
Block a user