repo.or.cz
/
hdt-cyring.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
hdt: Fixing array size
[hdt-cyring.git]
/
com32
/
modules
/
reboot.c
blob
a6d564747f39bca6f89880cfbcdbf9505890c3c7
1
#include <syslinux/reboot.h>
2
#include <string.h>
3
4
int
main
(
int
argc
,
char
*
argv
[])
5
{
6
int
warm
=
0
;
7
int
i
;
8
9
for
(
i
=
1
;
i
<
argc
;
i
++) {
10
if
(!
strcmp
(
argv
[
i
],
"-w"
) || !
strcmp
(
argv
[
i
],
"--warm"
))
11
warm
=
1
;
12
}
13
14
syslinux_reboot
(
warm
);
15
}