Make the return value a char *' instead of a const char *'.

1998-12-09  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/procargs.h (glibtop_get_proc_args): Make the
	return value a `char *' instead of a `const char *'.
This commit is contained in:
Martin Baulig
1998-12-09 11:38:49 +00:00
committed by Martin Baulig
parent ee9812e9af
commit 1520ee7083
10 changed files with 90 additions and 12 deletions

View File

@@ -36,13 +36,15 @@ output (pid_t pid)
{
glibtop_union data;
char *args;
unsigned i;
#if HAVE_LIBGTOP_SMP
unsigned long total;
double p_total, p_utime, p_stime;
double b_total, b_utime, b_stime;
double s_total, s_utime, s_stime;
double my_utime, my_stime;
int ncpu, i;
int ncpu;
#endif
printf ("\n");
@@ -138,6 +140,11 @@ output (pid_t pid)
args = glibtop_get_proc_args (&data.proc_args, pid, 0);
for (i = 0; i < data.proc_args.size; i++) {
if (args [i]) continue;
args [i] = '|';
}
printf ("Proc_Args PID %5d (0x%08lx): %lu - '%s'\n", (int) pid,
(unsigned long) data.proc_args.flags,
(unsigned long) data.proc_args.size,