X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fversion.c;h=71d9e54dd21c14f3f88742b55665f11d8b2802b0;hp=73f53745ca64b4b09497d17b72d53e64050b100b;hb=dd37dbb261ac22f4d12bae1ec70236f51763051f;hpb=8d691989077a0addcbd840d769dce6700f3d9622 diff --git a/src/version.c b/src/version.c index 73f5374..71d9e54 100644 --- a/src/version.c +++ b/src/version.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) Index Data * See the file LICENSE for details. - * - * $Id: version.c,v 1.5 2007-01-03 08:42:15 adam Exp $ */ /** @@ -10,10 +8,6 @@ * \brief Implements YAZ version utilities. */ -/** - * \mainpage The YAZ Toolkit. - */ - #if HAVE_CONFIG_H #include #endif @@ -21,17 +15,18 @@ #include #include -unsigned long yaz_version(char *version_str, char *sys_str) +unsigned long yaz_version(char *version_str, char *sha1_str) { if (version_str) strcpy(version_str, YAZ_VERSION); - if (sys_str) - strcpy(sys_str, ""); + if (sha1_str) + strcpy(sha1_str, YAZ_VERSION_SHA1); return YAZ_VERSIONL; } /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab