Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
7ededce9
Commit
7ededce9
authored
8 years ago
by
Hisham
Browse files
Options
Download
Email Patches
Plain Diff
Silence cast warning.
parent
fa0c637c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Process.c
+1
-0
Process.c
Process.h
+1
-0
Process.h
Settings.c
+1
-1
Settings.c
with
3 additions
and
1 deletion
+3
-1
Process.c
View file @
7ededce9
...
...
@@ -48,6 +48,7 @@ in the source distribution for its full text.
#define PROCESS_FLAG_IO 0x0001
typedef enum ProcessFields {
NULL_PROCESSFIELD = 0,
PID = 1,
COMM = 2,
STATE = 3,
...
...
This diff is collapsed.
Click to expand it.
Process.h
View file @
7ededce9
...
...
@@ -28,6 +28,7 @@ in the source distribution for its full text.
#define PROCESS_FLAG_IO 0x0001
typedef
enum
ProcessFields
{
NULL_PROCESSFIELD
=
0
,
PID
=
1
,
COMM
=
2
,
STATE
=
3
,
...
...
This diff is collapsed.
Click to expand it.
Settings.c
View file @
7ededce9
...
...
@@ -159,7 +159,7 @@ static void readFields(ProcessField* fields, int* flags, const char* line) {
j
++
;
}
}
fields
[
j
]
=
(
ProcessField
)
NULL
;
fields
[
j
]
=
NULL_PROCESSFIELD
;
String_freeArray
(
ids
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help