X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fcclerrms.c;h=61e63a0d6e947d2c5213bdc9e114e16d0916ed0b;hb=3c287bc1d48ee6a1f300054c2cebd0ba312bd5b9;hp=0ac34837ea757182de4a31c170d2755aa7cb3705;hpb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0;p=yaz-moved-to-github.git diff --git a/src/cclerrms.c b/src/cclerrms.c index 0ac3483..61e63a0 100644 --- a/src/cclerrms.c +++ b/src/cclerrms.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data + * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. */ /** @@ -9,6 +9,9 @@ * This source file implements mapping between CCL error code and * their string equivalents. */ +#if HAVE_CONFIG_H +#include +#endif #include @@ -28,18 +31,14 @@ static char *err_msg_array[] = { "Right truncation not supported" }; -/* - * ccl_err_msg: return name of CCL error - * ccl_errno: Error no. - * return: Name of error. - */ -const char *ccl_err_msg (int ccl_errno) +const char *ccl_err_msg(int ccl_errno) { return err_msg_array[ccl_errno]; } /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab