X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt_common.c;h=e02dc6af5b88ac5d5deb83f10d333324448c112a;hp=8fac0dc71ed37a7dff633a2891d4ada1a0c0376b;hb=d4b040af5e31260dbf71f4547484179f32be4746;hpb=7bf235513ca87b608bdddf6220e284213965e130;ds=sidebyside diff --git a/crypt_common.c b/crypt_common.c index 8fac0dc7..e02dc6af 100644 --- a/crypt_common.c +++ b/crypt_common.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2011 Andre Noll + * Copyright (C) 2005-2012 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -7,7 +7,6 @@ /** \file crypt_common.c Crypto functions independent of openssl/libgcrypt. */ #include -#include #include "para.h" #include "error.h" @@ -86,7 +85,7 @@ int base64_decode(char const *src, unsigned char *target, size_t targsize) break; pos = strchr(Base64, ch); - if (pos == 0) /* A non-base64 character. */ + if (pos == NULL) /* A non-base64 character. */ return -E_BASE64; switch (state) {