X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fversion.c;h=64921be447fc4b788e32d2434d22ac7a7f9225c1;hp=0b5256d1dad10d85d277dc602e1101442682b86d;hb=fe42f72dc30321041420cf2d1a83867b1c450f38;hpb=2a6b6691d7717640bbf7698d8bad5afafebb760d diff --git a/src/version.c b/src/version.c index 0b5256d..64921be 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) 1995-2012 Index Data * See the file LICENSE for details. - * - * $Id: version.c,v 1.6 2007-01-13 08:57:47 adam Exp $ */ /** @@ -17,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