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
Benny Baumann
fastdiscard
Commits
b16d274f
Commit
b16d274f
authored
Sep 21, 2018
by
Benny Baumann
Browse files
del: Remove usage: We simply run
parent
fe29c93b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
discard.c
discard.c
+0
-14
No files found.
discard.c
View file @
b16d274f
...
...
@@ -32,11 +32,6 @@ struct {
static
char
iobuf
[
16384
]
=
{
0
};
static
struct
iovec
iov
[
1024
];
void
usage
(
char
*
name
)
{
fprintf
(
stderr
,
"usage: %s [-h]
\n
"
,
name
);
exit
(
-
1
);
}
int
add_epoll
(
int
events
,
int
fd
)
{
int
rc
;
struct
epoll_event
ev
;
...
...
@@ -150,15 +145,6 @@ int main( int argc, char *argv[] ) {
cfg
.
port
=
9
;
while
(
(
opt
=
getopt
(
argc
,
argv
,
"h"
)
)
!=
-
1
)
{
switch
(
opt
)
{
case
'h'
:
default:
usage
(
argv
[
0
]
);
break
;
}
}
sigset_t
all
;
sigfillset
(
&
all
);
sigprocmask
(
SIG_SETMASK
,
&
all
,
NULL
);
...
...
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