projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix uninit variable (hits_limit)
[idzebra-moved-to-github.git]
/
util
/
version.c
diff --git
a/util/version.c
b/util/version.c
index
edae783
..
9b76a72
100644
(file)
--- a/
util/version.c
+++ b/
util/version.c
@@
-1,8
+1,5
@@
-/* $Id: version.c,v 1.1 2007-08-27 17:22:22 adam Exp $
- Copyright (C) 1995-2007
- Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+ Copyright (C) 1994-2011 Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
@@
-29,30
+26,22
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include <config.h>
#endif
#include <config.h>
#endif
+#include <yaz/snprintf.h>
#include <string.h>
#include <idzebra/version.h>
#include <string.h>
#include <idzebra/version.h>
-void zebra_get_version(char *version_str, char *sys_str)
+void zebra_get_version(char *version_str, char *sha1_str)
{
if (version_str)
strcpy(version_str, ZEBRAVER);
{
if (version_str)
strcpy(version_str, ZEBRAVER);
- if (sys_str)
- {
- strcpy(sys_str, "unknown");
-
-#ifdef WIN32
- strcpy(sys_str, "win32");
-#endif
-
-#ifdef HOST_TRIPLET
- strcpy(sys_str, HOST_TRIPLET);
-#endif
- }
+ if (sha1_str)
+ strcpy(sha1_str, ZEBRA_VERSION_SHA1);
}
/*
* Local variables:
* c-basic-offset: 4
}
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab