diff options
author | jmallett <jmallett@FreeBSD.org> | 2003-01-18 03:31:30 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2003-01-18 03:31:30 +0000 |
commit | 40b68c17b274224ba02eef00e249fc76851cfc1e (patch) | |
tree | 9104c9ba4cac4cee66a2a90b7d0d7a2e8651ee83 /bin/ps | |
parent | 3fdcc957db60880f922ff538b2e4687af7d46509 (diff) | |
download | FreeBSD-src-40b68c17b274224ba02eef00e249fc76851cfc1e.zip FreeBSD-src-40b68c17b274224ba02eef00e249fc76851cfc1e.tar.gz |
Refer to the process label as proclabel, as there is a function called label,
and that's what these locals were called before.
Diffstat (limited to 'bin/ps')
-rw-r--r-- | bin/ps/print.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index 86e9b45..8760484 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -738,24 +738,24 @@ void label(KINFO *k, VARENT *ve) { char *string; - mac_t label; + mac_t proclabel; int error; VAR *v; v = ve->var; string = NULL; - if (mac_prepare_process_label(&label) == -1) { + if (mac_prepare_process_label(&proclabel) == -1) { perror("mac_prepare_process_label"); goto out; } - error = mac_get_pid(k->ki_p->ki_pid, label); + error = mac_get_pid(k->ki_p->ki_pid, proclabel); if (error == 0) { - if (mac_to_text(label, &string) == -1) + if (mac_to_text(proclabel, &string) == -1) string = NULL; } - mac_free(label); + mac_free(proclabel); out: if (string != NULL) { @@ -770,18 +770,18 @@ int s_label(KINFO *k) { char *string = NULL; - mac_t label; + mac_t proclabel; int error, size = 0; - if (mac_prepare_process_label(&label) == -1) { + if (mac_prepare_process_label(&proclabel) == -1) { perror("mac_prepare_process_label"); return (0); } - error = mac_get_pid(k->ki_p->ki_pid, label); - if (error == 0 && mac_to_text(label, &string) == 0) { + error = mac_get_pid(k->ki_p->ki_pid, proclabel); + if (error == 0 && mac_to_text(proclabel, &string) == 0) { size = strlen(string); free(string); } - mac_free(label); + mac_free(proclabel); return (size); } |