]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - version.c
version.c: Remove bad doxygen \file comment.
[paraslash.git] / version.c
index d2df4818f4cb240482e5bf48028c5d5d5fd88368..d81da754be3982661d11b0feb66eb3f37fb75111 100644 (file)
--- a/version.c
+++ b/version.c
@@ -1,7 +1,13 @@
-#include "para.h"
+/*
+ * Copyright (C) 2013-2014 Andre Noll <maan@systemlinux.org>
+ *
+ * Licensed under the GPL v2. For licencing details see COPYING.
+ */
 
 
-/** \file version.h Macros for printing the version string. */
+/** \file version.c Some helpers for printing version and copyright strings. */
 
 
+#include "para.h"
+#include "version.h"
 #include "git-version.h"
 
 /**
 #include "git-version.h"
 
 /**
@@ -10,7 +16,7 @@
  * \return The string generated by the GIT-VERSION-GEN script. It is passed
  * as a preprocessor define during compilation.
  */
  * \return The string generated by the GIT-VERSION-GEN script. It is passed
  * as a preprocessor define during compilation.
  */
-const char *version_git(void)
+__a_const const char *version_git(void)
 {
        return GIT_VERSION;
 }
 {
        return GIT_VERSION;
 }
@@ -20,14 +26,14 @@ const char *version_git(void)
  *
  * \param pfx The program name (without the leading "para_").
  *
  *
  * \param pfx The program name (without the leading "para_").
  *
- * \return A statically allocated string which contains the program name, the
- * git version and the codename. It must not be freed by the caller.
+ * \return A statically allocated string which contains the program name and
+ * the git version. It must not be freed by the caller.
  */
 const char *version_single_line(const char *pfx)
 {
        static char buf[100];
        snprintf(buf, sizeof(buf) - 1,
  */
 const char *version_single_line(const char *pfx)
 {
        static char buf[100];
        snprintf(buf, sizeof(buf) - 1,
-               "para_%s " GIT_VERSION " (" CODENAME ")", pfx);
+               "para_%s " GIT_VERSION, pfx);
        return buf;
 }
 
        return buf;
 }
 
@@ -48,11 +54,13 @@ const char *version_text(const char *pfx)
        static char buf[512];
 
        snprintf(buf, sizeof(buf) - 1, "%s\n"
        static char buf[512];
 
        snprintf(buf, sizeof(buf) - 1, "%s\n"
-               "built: " BUILD_DATE ", " UNAME_RS ", " CC_VERSION "\n"
-               "Copyright (C) 2013 Andre Noll\n"
+               "Copyright (C) 2014 Andre Noll\n"
                "This is free software with ABSOLUTELY NO WARRANTY."
                " See COPYING for details.\n"
                "This is free software with ABSOLUTELY NO WARRANTY."
                " See COPYING for details.\n"
-               "Report bugs to <maan@systemlinux.org>.\n",
+               "Report bugs to <maan@systemlinux.org>.\n"
+               "build date: " BUILD_DATE ",\n"
+               "build system: " UNAME_RS ",\n"
+               "compiler: " CC_VERSION ".\n",
                version_single_line(pfx)
        );
        return buf;
                version_single_line(pfx)
        );
        return buf;