Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Libraries
libotr-next
Commits
c3301146
Commit
c3301146
authored
Jul 19, 2012
by
Ian Goldberg
Browse files
Remove some compilation warnings from context.[ch]
parent
e31c21d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/context.c
View file @
c3301146
...
...
@@ -29,9 +29,6 @@
#include "context.h"
#include "instag.h"
static
void
set_instance_fingerprint_next
(
OtrlUserState
us
,
ConnContext
*
context
);
/* Create a new connection context. */
static
ConnContext
*
new_context
(
const
char
*
user
,
const
char
*
accountname
,
const
char
*
protocol
)
...
...
@@ -254,10 +251,13 @@ ConnContext * otrl_context_find(OtrlUserState us, const char *user,
return
NULL
;
}
/* Return true iff the given fingerprint is marked as trusted. */
int
otrl_context_is_fingerprint_trusted
(
Fingerprint
*
fprint
)
{
return
fprint
&&
fprint
->
trust
&&
fprint
->
trust
[
0
]
!=
'\0'
;
}
/* This method gets called after sending or receiving a message, to
* update the master context's "recent context" pointers. */
void
otrl_context_update_recent_child
(
ConnContext
*
context
,
unsigned
int
sent_msg
)
{
ConnContext
*
m_context
=
context
->
m_context
;
...
...
src/context.h
View file @
c3301146
...
...
@@ -141,8 +141,11 @@ ConnContext * otrl_context_find(OtrlUserState us, const char *user,
otrl_instag_t
their_instance
,
int
add_if_missing
,
int
*
addedp
,
void
(
*
add_app_data
)(
void
*
data
,
ConnContext
*
context
),
void
*
data
);
/* This method gets called after sending or receiving a message, to update the
* master context's "recent context" pointers. */
/* Return true iff the given fingerprint is marked as trusted. */
int
otrl_context_is_fingerprint_trusted
(
Fingerprint
*
fprint
);
/* This method gets called after sending or receiving a message, to
* update the master context's "recent context" pointers. */
void
otrl_context_update_recent_child
(
ConnContext
*
context
,
unsigned
int
sent_msg
);
...
...
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