Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
RiscOS
S
Sources
SystemRes
InetRes
Commits
262a62f3
Commit
262a62f3
authored
Jan 16, 2004
by
Ben Avison
Browse files
Minor changes required in order to build with cc 5.55.
Tagged as 'Internet-5_43a'
parent
540839dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
Sources/ifconfig/c/IfConfig
Sources/ifconfig/c/IfConfig
+8
-7
No files found.
Sources/ifconfig/c/IfConfig
View file @
262a62f3
...
@@ -406,7 +406,7 @@ int ifconfig(int argc, char *argv[], int af, struct afswtch *rafp,
...
@@ -406,7 +406,7 @@ int ifconfig(int argc, char *argv[], int af, struct afswtch *rafp,
#define DSTADDR 3
#define DSTADDR 3
/*ARGSUSED*/
/*ARGSUSED*/
void
setifaddr
(
char
*
addr
,
shor
t
param
)
void
setifaddr
(
char
*
addr
,
in
t
param
)
{
{
/*
/*
* Delay the ioctl to set the interface addr until flags are all set.
* Delay the ioctl to set the interface addr until flags are all set.
...
@@ -475,14 +475,15 @@ void setifdstaddr(char *addr, int param)
...
@@ -475,14 +475,15 @@ void setifdstaddr(char *addr, int param)
(
*
afp
->
af_getaddr
)(
addr
,
DSTADDR
);
(
*
afp
->
af_getaddr
)(
addr
,
DSTADDR
);
}
}
void
setifflags
(
char
*
vname
,
shor
t
value
)
void
setifflags
(
char
*
vname
,
in
t
value
)
{
{
if
(
ioctl
(
s
,
SIOCGIFFLAGS
,
(
caddr_t
)
&
ifr
)
<
0
)
{
value
=
(
short
)
value
;
Perror
(
"ioctl (SIOCGIFFLAGS)"
);
if
(
ioctl
(
s
,
SIOCGIFFLAGS
,
(
caddr_t
)
&
ifr
)
<
0
)
{
exit
(
1
);
Perror
(
"ioctl (SIOCGIFFLAGS)"
);
}
exit
(
1
);
}
strncpy
(
ifr
.
ifr_name
,
name
,
sizeof
(
ifr
.
ifr_name
));
strncpy
(
ifr
.
ifr_name
,
name
,
sizeof
(
ifr
.
ifr_name
));
flags
=
ifr
.
ifr_flags
;
flags
=
ifr
.
ifr_flags
;
if
(
value
<
0
)
{
if
(
value
<
0
)
{
value
=
-
value
;
value
=
-
value
;
...
...
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