Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
820840ec
Commit
820840ec
authored
Oct 18, 2013
by
vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some compilation errors
parent
1ceaa48b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
interface.c
interface.c
+4
-3
mtproto-client.c
mtproto-client.c
+2
-1
queries.c
queries.c
+2
-1
No files found.
interface.c
View file @
820840ec
#define _GNU_SOURCE
#define _GNU_SOURCE
#include <readline/readline.h>
#include <readline/history.h>
#include <assert.h>
#include <assert.h>
#include <stdio.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <readline/readline.h>
#include <readline/history.h>
#include "include.h"
#include "include.h"
#include "queries.h"
#include "queries.h"
...
...
mtproto-client.c
View file @
820840ec
...
@@ -860,7 +860,8 @@ void work_packed (struct connection *c, long long msg_id) {
...
@@ -860,7 +860,8 @@ void work_packed (struct connection *c, long long msg_id) {
char
*
s
=
fetch_str
(
l
);
char
*
s
=
fetch_str
(
l
);
size_t
dl
=
MAX_PACKED_SIZE
;
size_t
dl
=
MAX_PACKED_SIZE
;
z_stream
strm
=
{
0
};
z_stream
strm
;
memset
(
&
strm
,
0
,
sizeof
(
strm
));
assert
(
inflateInit2
(
&
strm
,
16
+
MAX_WBITS
)
==
Z_OK
);
assert
(
inflateInit2
(
&
strm
,
16
+
MAX_WBITS
)
==
Z_OK
);
strm
.
avail_in
=
l
;
strm
.
avail_in
=
l
;
strm
.
next_in
=
(
void
*
)
s
;
strm
.
next_in
=
(
void
*
)
s
;
...
...
queries.c
View file @
820840ec
...
@@ -123,7 +123,8 @@ void query_result (long long id UU) {
...
@@ -123,7 +123,8 @@ void query_result (long long id UU) {
char
*
s
=
fetch_str
(
l
);
char
*
s
=
fetch_str
(
l
);
size_t
dl
=
MAX_PACKED_SIZE
;
size_t
dl
=
MAX_PACKED_SIZE
;
z_stream
strm
=
{
0
};
z_stream
strm
;
memset
(
&
strm
,
0
,
sizeof
(
strm
));
assert
(
inflateInit2
(
&
strm
,
16
+
MAX_WBITS
)
==
Z_OK
);
assert
(
inflateInit2
(
&
strm
,
16
+
MAX_WBITS
)
==
Z_OK
);
strm
.
avail_in
=
l
;
strm
.
avail_in
=
l
;
strm
.
next_in
=
(
void
*
)
s
;
strm
.
next_in
=
(
void
*
)
s
;
...
...
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