Skip to content
GitLab
Menu
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
ffcf48fb
Commit
ffcf48fb
authored
Feb 02, 2016
by
Hisham
Browse files
Merge branch 'xalloc'
parents
301c346c
b54d2dde
Changes
43
Show whitespace changes
Inline
Side-by-side
openbsd/Platform.c
View file @
ffcf48fb
...
...
@@ -264,7 +264,7 @@ void Platform_setSwapValues(Meter* this) {
return
;
}
swdev
=
c
alloc
(
nswap
,
sizeof
(
*
swdev
));
swdev
=
xC
alloc
(
nswap
,
sizeof
(
*
swdev
));
if
(
swdev
==
NULL
)
{
return
;
}
...
...
unsupported/UnsupportedProcess.c
View file @
ffcf48fb
...
...
@@ -17,7 +17,7 @@ in the source distribution for its full text.
}*/
Process
*
UnsupportedProcess_new
(
Settings
*
settings
)
{
Process
*
this
=
c
alloc
(
1
,
sizeof
(
Process
));
Process
*
this
=
xC
alloc
(
1
,
sizeof
(
Process
));
Object_setClass
(
this
,
Class
(
Process
));
Process_init
(
this
,
settings
);
return
this
;
...
...
unsupported/UnsupportedProcessList.c
View file @
ffcf48fb
...
...
@@ -16,7 +16,7 @@ in the source distribution for its full text.
}*/
ProcessList
*
ProcessList_new
(
UsersTable
*
usersTable
,
Hashtable
*
pidWhiteList
,
uid_t
userId
)
{
ProcessList
*
this
=
c
alloc
(
1
,
sizeof
(
ProcessList
));
ProcessList
*
this
=
xC
alloc
(
1
,
sizeof
(
ProcessList
));
ProcessList_init
(
this
,
Class
(
Process
),
usersTable
,
pidWhiteList
,
userId
);
return
this
;
...
...
Prev
1
2
3
Next
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