Fix crash in record conv rule select YAZ-812
[yaz-moved-to-github.git] / src / version.c
index 0b5256d..71d9e54 100644 (file)
@@ -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.6 2007-01-13 08:57:47 adam Exp $
  */
 
 /**
 #include <string.h>
 #include <yaz/yaz-version.h>
 
-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