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:
@@ -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;
|
||||
|
@@ -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>
|
||||
*/
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user