Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
9621acda
Commit
9621acda
authored
Apr 02, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] strtok->strsep in alpha setup
parent
3add3928
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
arch/alpha/kernel/setup.c
arch/alpha/kernel/setup.c
+4
-2
No files found.
arch/alpha/kernel/setup.c
View file @
9621acda
...
...
@@ -472,6 +472,7 @@ setup_arch(char **cmdline_p)
struct
percpu_struct
*
cpu
;
char
*
type_name
,
*
var_name
,
*
p
;
void
*
kernel_end
=
_end
;
/* end of kernel */
char
*
args
=
command_line
;
hwrpb
=
(
struct
hwrpb_struct
*
)
__va
(
INIT_HWRPB
->
phys_addr
);
boot_cpuid
=
hard_smp_processor_id
();
...
...
@@ -509,7 +510,8 @@ setup_arch(char **cmdline_p)
/*
* Process command-line arguments.
*/
for
(
p
=
strtok
(
command_line
,
"
\t
"
);
p
;
p
=
strtok
(
NULL
,
"
\t
"
))
{
while
((
p
=
strsep
(
&
args
,
"
\t
"
))
!=
NULL
)
{
if
(
!*
p
)
continue
;
if
(
strncmp
(
p
,
"alpha_mv="
,
9
)
==
0
)
{
vec
=
get_sysvec_byname
(
p
+
9
);
continue
;
...
...
@@ -528,7 +530,7 @@ setup_arch(char **cmdline_p)
}
}
/* Replace the command line, now that we've killed it with str
tok
. */
/* Replace the command line, now that we've killed it with str
sep
. */
strcpy
(
command_line
,
saved_command_line
);
/* If we want SRM console printk echoing early, do it now. */
...
...
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