Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot
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
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
Florian Mayer
u-boot
Commits
b920ee9d
Commit
b920ee9d
authored
14 years ago
by
Mike Frysinger
Committed by
Wolfgang Denk
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
copy_filename: constify "src" arg
Signed-off-by:
Mike Frysinger
<
vapier@gentoo.org
>
parent
722b061b
No related branches found
No related tags found
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 @
b920ee9d
...
...
@@ -526,7 +526,7 @@ extern ushort string_to_VLAN(char *s);
extern
ushort
getenv_VLAN
(
char
*
);
/* copy a filename (allow for "..." notation, limit length) */
extern
void
copy_filename
(
char
*
dst
,
char
*
src
,
int
size
);
extern
void
copy_filename
(
char
*
dst
,
const
char
*
src
,
int
size
);
/* get a random source port */
extern
unsigned
int
random_port
(
void
);
...
...
This diff is collapsed.
Click to expand it.
net/net.c
+
1
−
1
View file @
b920ee9d
...
...
@@ -1865,7 +1865,7 @@ NetSetIP(volatile uchar * xip, IPaddr_t dest, int dport, int sport, int len)
ip
->
ip_sum
=
~
NetCksum
((
uchar
*
)
ip
,
IP_HDR_SIZE_NO_UDP
/
2
);
}
void
copy_filename
(
char
*
dst
,
char
*
src
,
int
size
)
void
copy_filename
(
char
*
dst
,
const
char
*
src
,
int
size
)
{
if
(
*
src
&&
(
*
src
==
'"'
))
{
++
src
;
...
...
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