commons.c (goaccess-1.7) | : | commons.c (goaccess-1.7.1) | ||
---|---|---|---|---|
/** | /** | |||
* commons.c -- holds different data types | * commons.c -- holds different data types | |||
* ______ ___ | * ______ ___ | |||
* / ____/___ / | _____________ __________ | * / ____/___ / | _____________ __________ | |||
* / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ | * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ | |||
* / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) | * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) | |||
* \____/\____/_/ |_\___/\___/\___/____/____/ | * \____/\____/_/ |_\___/\___/\___/____/____/ | |||
* | * | |||
* The MIT License (MIT) | * The MIT License (MIT) | |||
* Copyright (c) 2009-2022 Gerardo Orellana <hello @ goaccess.io> | * Copyright (c) 2009-2023 Gerardo Orellana <hello @ goaccess.io> | |||
* | * | |||
* Permission is hereby granted, free of charge, to any person obtaining a copy | * Permission is hereby granted, free of charge, to any person obtaining a copy | |||
* of this software and associated documentation files (the "Software"), to deal | * of this software and associated documentation files (the "Software"), to deal | |||
* in the Software without restriction, including without limitation the rights | * in the Software without restriction, including without limitation the rights | |||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |||
* copies of the Software, and to permit persons to whom the Software is | * copies of the Software, and to permit persons to whom the Software is | |||
* furnished to do so, subject to the following conditions: | * furnished to do so, subject to the following conditions: | |||
* | * | |||
* The above copyright notice and this permission notice shall be included in al l | * The above copyright notice and this permission notice shall be included in al l | |||
* copies or substantial portions of the Software. | * copies or substantial portions of the Software. | |||
skipping to change at line 159 | skipping to change at line 159 | |||
fprintf (stdout, "%s\n", path); | fprintf (stdout, "%s\n", path); | |||
free (path); | free (path); | |||
} | } | |||
} | } | |||
/* Display the current version. */ | /* Display the current version. */ | |||
void | void | |||
display_version (void) { | display_version (void) { | |||
fprintf (stdout, "GoAccess - %s.\n", GO_VERSION); | fprintf (stdout, "GoAccess - %s.\n", GO_VERSION); | |||
fprintf (stdout, "%s: %s\n", INFO_MORE_INFO, GO_WEBSITE); | fprintf (stdout, "%s: %s\n", INFO_MORE_INFO, GO_WEBSITE); | |||
fprintf (stdout, "Copyright (C) 2009-2022 by Gerardo Orellana\n"); | fprintf (stdout, "Copyright (C) 2009-2023 by Gerardo Orellana\n"); | |||
fprintf (stdout, "\nBuild configure arguments:\n"); | fprintf (stdout, "\nBuild configure arguments:\n"); | |||
#ifdef DEBUG | #ifdef DEBUG | |||
fprintf (stdout, " --enable-debug\n"); | fprintf (stdout, " --enable-debug\n"); | |||
#endif | #endif | |||
#ifdef HAVE_NCURSESW_NCURSES_H | #ifdef HAVE_NCURSESW_NCURSES_H | |||
fprintf (stdout, " --enable-utf8\n"); | fprintf (stdout, " --enable-utf8\n"); | |||
#endif | #endif | |||
#ifdef HAVE_LIBGEOIP | #ifdef HAVE_LIBGEOIP | |||
fprintf (stdout, " --enable-geoip=legacy\n"); | fprintf (stdout, " --enable-geoip=legacy\n"); | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |