Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144761698
D49609.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D49609.id.diff
View Options
diff --git a/bin/ps/extern.h b/bin/ps/extern.h
--- a/bin/ps/extern.h
+++ b/bin/ps/extern.h
@@ -50,7 +50,7 @@
char *elapsed(KINFO *, VARENT *);
char *elapseds(KINFO *, VARENT *);
char *emulname(KINFO *, VARENT *);
-VARENT *find_varentry(VAR *);
+VARENT *find_varentry(const char *);
const char *fmt_argv(char **, char *, char *, size_t);
double getpcpu(const KINFO *);
char *jailname(KINFO *, VARENT *);
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -287,7 +287,7 @@
* get on with our lives if this VAR is already
* represented in the list.
*/
- vent = find_varentry(v);
+ vent = find_varentry(v->name);
if (vent != NULL)
continue;
}
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -1180,12 +1180,12 @@
}
VARENT *
-find_varentry(VAR *v)
+find_varentry(const char *name)
{
struct varent *vent;
STAILQ_FOREACH(vent, &varlist, next_ve) {
- if (strcmp(vent->var->name, v->name) == 0)
+ if (strcmp(vent->var->name, name) == 0)
return vent;
}
return NULL;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 13, 6:55 AM (13 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28674814
Default Alt Text
D49609.id.diff (1 KB)
Attached To
Mode
D49609: ps(1): find_varentry() to take a name instead of a VAR
Attached
Detach File
Event Timeline
Log In to Comment