Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
magic-lantern
magic-lantern
Commits
609d604bb8fe
Commit
e0b9f315
authored
Mar 24, 2018
by
alex@thinkpad
Browse files
boot-hack: no real reason to use short for magic_off
( --HG-- branch : lua_fix
parent
53cf435ae5d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/boot-hack.c
View file @
609d604b
...
...
@@ -345,9 +345,10 @@ static void nop( void ) { }
void
menu_init
(
void
)
__attribute__
((
weak
,
alias
(
"nop"
)));
void
debug_init
(
void
)
__attribute__
((
weak
,
alias
(
"nop"
)));
static
unsigned
short
int
magic_off
=
0
;
// Set to 1 to disable ML
static
unsigned
short
int
magic_off_request
=
0
;
unsigned
short
int
magic_is_off
()
static
int
magic_off
=
0
;
// Set to 1 to disable ML
static
int
magic_off_request
=
0
;
int
magic_is_off
()
{
return
magic_off
;
}
...
...
src/boot-hack.h
View file @
609d604b
#ifndef __BOOT_HACK_H_
#define __BOOT_HACK_H_
unsigned
short
int
magic_is_off
();
int
magic_is_off
();
void
_disable_ml_startup
();
/* Blocks execution until config is read */
...
...
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