Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
2685f573
Commit
2685f573
authored
Dec 29, 2003
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some -Wall warnings.
parent
979fc9d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
pxe/proxydhcp.c
pxe/proxydhcp.c
+2
-4
pxe/proxydhcp_mysql.c
pxe/proxydhcp_mysql.c
+2
-2
No files found.
pxe/proxydhcp.c
View file @
2685f573
...
...
@@ -304,7 +304,6 @@ int findiface(struct sockaddr_in *client) {
for
(
i
=
0
;
i
<
ic
.
ifc_len
;)
{
struct
in_addr
ifaddr
;
struct
sockaddr_in
*
iftemp
;
struct
in_addr
t
;
struct
ifreq
*
ifr
=
(
struct
ifreq
*
)((
caddr_t
)
ic
.
ifc_req
+
i
);
#ifdef HAVE_SOCKADDR_SA_LEN
i
+=
max
(
sizeof
(
struct
sockaddr
),
ifr
->
ifr_addr
.
sa_len
)
+
...
...
@@ -340,7 +339,7 @@ main(int argc, char *argv[])
struct
sockaddr_in
server
,
client
;
struct
in_addr
sip
;
int
clientlength
;
int
i
,
argn
=
1
;
int
argn
=
1
;
char
*
p
,
bootprog
[
256
],
ifname
[
IFNAMSIZ
+
1
];
char
arguments
[
256
];
...
...
@@ -442,8 +441,7 @@ main(int argc, char *argv[])
struct
in_addr
ina
;
}
cm
;
#endif
struct
config
*
configp
;
clientlength
=
sizeof
(
client
);
#ifdef USE_RECVMSG
#ifdef IP_RECVDSTADDR
...
...
pxe/proxydhcp_mysql.c
View file @
2685f573
...
...
@@ -9,14 +9,14 @@
#include <netdb.h>
#include <stdio.h>
#include <syslog.h>
#include <arpa/inet.h>
#include <string.h>
#ifdef USE_MYSQL_DB
#include <mysql/mysql.h>
static
char
dbname
[]
=
TBDBNAME
;
static
MYSQL
db
;
static
int
parse_pathspec
(
char
*
path
,
struct
in_addr
*
sip
,
char
**
filename
);
static
int
clear_next_pxeboot
(
char
*
node
);
#include <stdarg.h>
...
...
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