Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
2e3ef6e4
Commit
2e3ef6e4
authored
14 years ago
by
Mike Frysinger
Committed by
Wolfgang Denk
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
string_to_VLAN: constify "var" arg
Signed-off-by:
Mike Frysinger
<
vapier@gentoo.org
>
parent
b920ee9d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/net.h
+1
-1
1 addition, 1 deletion
include/net.h
net/net.c
+1
-1
1 addition, 1 deletion
net/net.c
with
2 additions
and
2 deletions
include/net.h
+
1
−
1
View file @
2e3ef6e4
...
...
@@ -520,7 +520,7 @@ extern IPaddr_t string_to_ip(char *s);
extern
void
VLAN_to_string
(
ushort
x
,
char
*
s
);
/* Convert a string to a vlan id */
extern
ushort
string_to_VLAN
(
char
*
s
);
extern
ushort
string_to_VLAN
(
const
char
*
s
);
/* read a VLAN id from an environment variable */
extern
ushort
getenv_VLAN
(
char
*
);
...
...
This diff is collapsed.
Click to expand it.
net/net.c
+
1
−
1
View file @
2e3ef6e4
...
...
@@ -1913,7 +1913,7 @@ void VLAN_to_string(ushort x, char *s)
sprintf
(
s
,
"%d"
,
x
&
VLAN_IDMASK
);
}
ushort
string_to_VLAN
(
char
*
s
)
ushort
string_to_VLAN
(
const
char
*
s
)
{
ushort
id
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment