X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fversion.c;h=1449ac116ead0c214c8b1ab1fe809a989e9384ff;hb=a7585fd1220c684189091e7fba2c5d6cf436031e;hp=003c70943f3a7adad092ee392853ba919f1d17d7;hpb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0;p=yaz-moved-to-github.git diff --git a/src/version.c b/src/version.c index 003c709..1449ac1 100644 --- a/src/version.c +++ b/src/version.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ @@ -15,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