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
88f6de23
Commit
88f6de23
authored
Nov 05, 2011
by
Hisham Muhammad
Browse files
build fixes
parent
539b32dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
htop.c
View file @
88f6de23
...
@@ -18,7 +18,6 @@ in the source distribution for its full text.
...
@@ -18,7 +18,6 @@ in the source distribution for its full text.
#include "CRT.h"
#include "CRT.h"
#include "Panel.h"
#include "Panel.h"
#include "UsersTable.h"
#include "UsersTable.h"
#include "SignalItem.h"
#include "RichString.h"
#include "RichString.h"
#include "Settings.h"
#include "Settings.h"
#include "ScreenManager.h"
#include "ScreenManager.h"
...
@@ -784,9 +783,9 @@ int main(int argc, char** argv) {
...
@@ -784,9 +783,9 @@ int main(int argc, char** argv) {
}
}
SignalsPanel_reset
((
SignalsPanel
*
)
killPanel
);
SignalsPanel_reset
((
SignalsPanel
*
)
killPanel
);
const
char
*
fuFunctions
[]
=
{
"Send "
,
"Cancel "
,
NULL
};
const
char
*
fuFunctions
[]
=
{
"Send "
,
"Cancel "
,
NULL
};
Signal
*
sgn
=
(
Signal
*
)
pickFromVector
(
panel
,
killPanel
,
15
,
headerHeight
,
fuFunctions
,
defaultBar
,
header
);
ListItem
*
sgn
=
(
ListItem
*
)
pickFromVector
(
panel
,
killPanel
,
15
,
headerHeight
,
fuFunctions
,
defaultBar
,
header
);
if
(
sgn
)
{
if
(
sgn
)
{
if
(
sgn
->
super
.
key
!=
0
)
{
if
(
sgn
->
key
!=
0
)
{
Panel_setHeader
(
panel
,
"Sending..."
);
Panel_setHeader
(
panel
,
"Sending..."
);
Panel_draw
(
panel
,
true
);
Panel_draw
(
panel
,
true
);
refresh
();
refresh
();
...
@@ -794,13 +793,13 @@ int main(int argc, char** argv) {
...
@@ -794,13 +793,13 @@ int main(int argc, char** argv) {
for
(
int
i
=
0
;
i
<
Panel_size
(
panel
);
i
++
)
{
for
(
int
i
=
0
;
i
<
Panel_size
(
panel
);
i
++
)
{
Process
*
p
=
(
Process
*
)
Panel_get
(
panel
,
i
);
Process
*
p
=
(
Process
*
)
Panel_get
(
panel
,
i
);
if
(
p
->
tag
)
{
if
(
p
->
tag
)
{
Process_sendSignal
(
p
,
sgn
->
super
.
key
);
Process_sendSignal
(
p
,
sgn
->
key
);
anyTagged
=
true
;
anyTagged
=
true
;
}
}
}
}
if
(
!
anyTagged
)
{
if
(
!
anyTagged
)
{
Process
*
p
=
(
Process
*
)
Panel_getSelected
(
panel
);
Process
*
p
=
(
Process
*
)
Panel_getSelected
(
panel
);
Process_sendSignal
(
p
,
sgn
->
super
.
key
);
Process_sendSignal
(
p
,
sgn
->
key
);
}
}
napms
(
500
);
napms
(
500
);
}
}
...
...
htop.h
View file @
88f6de23
...
@@ -22,7 +22,6 @@ in the source distribution for its full text.
...
@@ -22,7 +22,6 @@ in the source distribution for its full text.
#include "CRT.h"
#include "CRT.h"
#include "Panel.h"
#include "Panel.h"
#include "UsersTable.h"
#include "UsersTable.h"
#include "SignalItem.h"
#include "RichString.h"
#include "RichString.h"
#include "Settings.h"
#include "Settings.h"
#include "ScreenManager.h"
#include "ScreenManager.h"
...
...
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