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
a5b6f93a
Commit
a5b6f93a
authored
Feb 24, 2014
by
vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed 'call' method from jerbob92
parent
f6fe5765
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
Makefile
Makefile
+2
-2
loop.c
loop.c
+4
-4
queries.c
queries.c
+0
-1
No files found.
Makefile
View file @
a5b6f93a
srcdir
=
.
CFLAGS
=
-g
-O2
CFLAGS
=
-g
-O2
-I
/usr/include/lua5.2
LDFLAGS
=
CPPFLAGS
=
DEFS
=
-DHAVE_CONFIG_H
COMPILE_FLAGS
=
${
CFLAGS
}
${
CPPFLAGS
}
${
DEFS
}
-Wall
-Wextra
-Werror
-Wno-deprecated
-fno-strict-aliasing
-fno-omit-frame-pointer
-ggdb
EXTRA_LIBS
=
-lconfig
-lcrypto
-lz
-l
rt
-lm
-lreadline
-llua
EXTRA_LIBS
=
-lconfig
-lcrypto
-lz
-l
m
-lreadline
-llua5
.2
-ldl
LOCAL_LDFLAGS
=
-rdynamic
-ggdb
${
EXTRA_LIBS
}
LINK_FLAGS
=
${
LDFLAGS
}
${
LOCAL_LDFLAGS
}
...
...
loop.c
View file @
a5b6f93a
...
...
@@ -517,13 +517,13 @@ int loop (void) {
do_send_code
(
default_username
);
char
*
code
=
0
;
size_t
size
=
0
;
printf
(
"Code from sms (if you did not receive an SMS and want to be called, type
0
): "
);
printf
(
"Code from sms (if you did not receive an SMS and want to be called, type
\"
call
\"
): "
);
while
(
1
)
{
if
(
net_getline
(
&
code
,
&
size
)
==
-
1
)
{
perror
(
"getline()"
);
exit
(
EXIT_FAILURE
);
}
if
(
*
code
==
'0'
)
{
if
(
!
strcmp
(
code
,
"call"
)
)
{
printf
(
"You typed 0, switching to phone system.
\n
"
);
do_phone_call
(
default_username
);
printf
(
"Calling you! Code: "
);
...
...
@@ -569,13 +569,13 @@ int loop (void) {
DC_working
=
DC_list
[
dc_working_num
];
do_send_code
(
default_username
);
printf
(
"Code from sms (if you did not receive an SMS and want to be called, type
0
): "
);
printf
(
"Code from sms (if you did not receive an SMS and want to be called, type
\"
call
\"
): "
);
while
(
1
)
{
if
(
net_getline
(
&
code
,
&
size
)
==
-
1
)
{
perror
(
"getline()"
);
exit
(
EXIT_FAILURE
);
}
if
(
*
code
==
'0'
)
{
if
(
!
strcmp
(
code
,
"call"
)
)
{
printf
(
"You typed 0, switching to phone system.
\n
"
);
do_phone_call
(
default_username
);
printf
(
"Calling you! Code: "
);
...
...
queries.c
View file @
a5b6f93a
...
...
@@ -472,7 +472,6 @@ void do_send_code (const char *user) {
int
phone_call_on_answer
(
struct
query
*
q
UU
)
{
fetch_bool
();
assert
(
1
);
return
0
;
}
...
...
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