library: remove procps_version functions

It doesn't make any sense to have the binary version strings
embedded into the library. The version strings are defined
already either in the Makefile or in include/c.h
This commit is contained in:
Craig Small
2015-06-18 22:37:24 +10:00
parent 6577371919
commit 505f257a8c
8 changed files with 15 additions and 21 deletions

View File

@@ -4,7 +4,6 @@ global:
closeproc;
cpuinfo;
dev_to_tty;
display_version;
escape_command;
escape_str;
escape_strlist;
@@ -47,7 +46,6 @@ global:
page_bytes;
pretty_print_signals;
print_uptime;
procps_version;
put_slabinfo;
readeither;
readproc;

View File

@@ -24,12 +24,6 @@
#include <stdlib.h>
#include "version.h"
const char procps_version[] = PACKAGE_NAME " version " PACKAGE_VERSION;
void display_version(void) {
fprintf(stdout, "%s\n", procps_version);
}
/* Linux kernel version information for procps-ng utilities
* Copyright (c) 1996 Charles Blake <cblake@bbn.com>
*/

View File

@@ -15,8 +15,6 @@
EXTERN_C_BEGIN
void init_Linux_version(void); /* Get Linux version */
extern void display_version(void); /* display suite version */
extern const char procps_version[]; /* global buf for suite version */
extern int linux_version_code; /* runtime version of LINUX_VERSION_CODE
in /usr/include/linux/version.h */