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
49f1321f
Commit
49f1321f
authored
Mar 06, 2014
by
Thomas Wentzel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change type in message_action and message_media from int to unsigned.
parent
6c239205
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
interface.c
interface.c
+18
-18
structures.h
structures.h
+2
-2
No files found.
interface.c
View file @
49f1321f
...
...
@@ -722,9 +722,9 @@ void interpreter (char *line UU) {
RET
;
}
struct
message
*
M
=
message_get
(
num
);
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_message_media_photo
)
{
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_message_media_photo
)
{
do_load_photo
(
&
M
->
media
.
photo
,
1
);
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_decrypted_message_media_photo
)
{
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_decrypted_message_media_photo
)
{
do_load_encr_video
(
&
M
->
media
.
encr_video
,
1
);
// this is not a bug.
}
else
{
printf
(
"Bad msg id
\n
"
);
...
...
@@ -737,9 +737,9 @@ void interpreter (char *line UU) {
RET
;
}
struct
message
*
M
=
message_get
(
num
);
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_message_media_photo
)
{
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_message_media_photo
)
{
do_load_photo
(
&
M
->
media
.
photo
,
2
);
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_decrypted_message_media_photo
)
{
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_decrypted_message_media_photo
)
{
do_load_encr_video
(
&
M
->
media
.
encr_video
,
2
);
// this is not a bug.
}
else
{
printf
(
"Bad msg id
\n
"
);
...
...
@@ -752,7 +752,7 @@ void interpreter (char *line UU) {
RET
;
}
struct
message
*
M
=
message_get
(
num
);
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_message_media_video
)
{
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_message_media_video
)
{
do_load_video_thumb
(
&
M
->
media
.
video
,
1
);
}
else
{
printf
(
"Bad msg id
\n
"
);
...
...
@@ -765,7 +765,7 @@ void interpreter (char *line UU) {
RET
;
}
struct
message
*
M
=
message_get
(
num
);
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_message_media_video
)
{
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_message_media_video
)
{
do_load_video_thumb
(
&
M
->
media
.
video
,
2
);
}
else
{
printf
(
"Bad msg id
\n
"
);
...
...
@@ -778,9 +778,9 @@ void interpreter (char *line UU) {
RET
;
}
struct
message
*
M
=
message_get
(
num
);
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_message_media_video
)
{
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_message_media_video
)
{
do_load_video
(
&
M
->
media
.
video
,
1
);
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_decrypted_message_media_video
)
{
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_decrypted_message_media_video
)
{
do_load_encr_video
(
&
M
->
media
.
encr_video
,
1
);
}
else
{
printf
(
"Bad msg id
\n
"
);
...
...
@@ -793,9 +793,9 @@ void interpreter (char *line UU) {
RET
;
}
struct
message
*
M
=
message_get
(
num
);
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_message_media_video
)
{
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_message_media_video
)
{
do_load_video
(
&
M
->
media
.
video
,
2
);
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_decrypted_message_media_video
)
{
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_decrypted_message_media_video
)
{
do_load_encr_video
(
&
M
->
media
.
encr_video
,
2
);
}
else
{
printf
(
"Bad msg id
\n
"
);
...
...
@@ -991,9 +991,9 @@ void interpreter (char *line UU) {
RET
;
}
struct
message
*
M
=
message_get
(
num
);
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_message_media_audio
)
{
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_message_media_audio
)
{
do_load_audio
(
&
M
->
media
.
video
,
1
);
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_decrypted_message_media_audio
)
{
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_decrypted_message_media_audio
)
{
do_load_encr_video
(
&
M
->
media
.
encr_video
,
1
);
}
else
{
printf
(
"Bad msg id
\n
"
);
...
...
@@ -1006,9 +1006,9 @@ void interpreter (char *line UU) {
RET
;
}
struct
message
*
M
=
message_get
(
num
);
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_message_media_audio
)
{
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_message_media_audio
)
{
do_load_audio
(
&
M
->
media
.
video
,
2
);
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_decrypted_message_media_audio
)
{
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_decrypted_message_media_audio
)
{
do_load_encr_video
(
&
M
->
media
.
encr_video
,
2
);
}
else
{
printf
(
"Bad msg id
\n
"
);
...
...
@@ -1047,9 +1047,9 @@ void interpreter (char *line UU) {
RET
;
}
struct
message
*
M
=
message_get
(
num
);
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_message_media_document
)
{
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_message_media_document
)
{
do_load_document
(
&
M
->
media
.
document
,
1
);
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_decrypted_message_media_document
)
{
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_decrypted_message_media_document
)
{
do_load_encr_video
(
&
M
->
media
.
encr_video
,
1
);
}
else
{
printf
(
"Bad msg id
\n
"
);
...
...
@@ -1062,9 +1062,9 @@ void interpreter (char *line UU) {
RET
;
}
struct
message
*
M
=
message_get
(
num
);
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_message_media_document
)
{
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_message_media_document
)
{
do_load_document
(
&
M
->
media
.
document
,
2
);
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_decrypted_message_media_document
)
{
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
CODE_decrypted_message_media_document
)
{
do_load_encr_video
(
&
M
->
media
.
encr_video
,
2
);
}
else
{
printf
(
"Bad msg id
\n
"
);
...
...
structures.h
View file @
49f1321f
...
...
@@ -264,7 +264,7 @@ struct document {
};
struct
message_action
{
int
type
;
unsigned
type
;
union
{
struct
{
char
*
title
;
...
...
@@ -279,7 +279,7 @@ struct message_action {
};
struct
message_media
{
int
type
;
unsigned
type
;
union
{
struct
photo
photo
;
struct
video
video
;
...
...
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