Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
473e2a1c
Commit
473e2a1c
authored
Dec 12, 2013
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added <signal.h> for linux, and squashed warning in transfer_file_data()
parent
146cf1d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mongoose.c
mongoose.c
+2
-1
No files found.
mongoose.c
View file @
473e2a1c
...
@@ -88,6 +88,7 @@ typedef struct _stati64 file_stat_t;
...
@@ -88,6 +88,7 @@ typedef struct _stati64 file_stat_t;
#include <dirent.h>
#include <dirent.h>
#include <unistd.h>
#include <unistd.h>
#include <pthread.h>
#include <pthread.h>
#include <signal.h>
#include <arpa/inet.h> // For inet_pton() when USE_IPV6 is defined
#include <arpa/inet.h> // For inet_pton() when USE_IPV6 is defined
#include <netinet/in.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/socket.h>
...
@@ -3008,7 +3009,7 @@ static void close_local_endpoint(struct connection *conn) {
...
@@ -3008,7 +3009,7 @@ static void close_local_endpoint(struct connection *conn) {
static
void
transfer_file_data
(
struct
connection
*
conn
)
{
static
void
transfer_file_data
(
struct
connection
*
conn
)
{
char
buf
[
IOBUF_SIZE
];
char
buf
[
IOBUF_SIZE
];
int
n
=
read
(
conn
->
endpoint
.
fd
,
buf
,
int
n
=
read
(
conn
->
endpoint
.
fd
,
buf
,
conn
->
cl
<
(
int64_t
)
sizeof
(
buf
)
?
(
int
)
conn
->
cl
:
sizeof
(
buf
));
conn
->
cl
<
(
int64_t
)
sizeof
(
buf
)
?
conn
->
cl
:
(
int
)
sizeof
(
buf
));
if
(
is_error
(
n
))
{
if
(
is_error
(
n
))
{
close_local_endpoint
(
conn
);
close_local_endpoint
(
conn
);
...
...
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