Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Olm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
Olm
Commits
137aa31e
Commit
137aa31e
authored
9 years ago
by
Mark Haines
Browse files
Options
Downloads
Patches
Plain Diff
olm_account_last_error and olm_clear_account should take an Account not a Session
parent
c965a0e6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/olm/olm.hh
+2
-2
2 additions, 2 deletions
include/olm/olm.hh
src/olm.cpp
+2
-2
2 additions, 2 deletions
src/olm.cpp
with
4 additions
and
4 deletions
include/olm/olm.hh
+
2
−
2
View file @
137aa31e
...
...
@@ -52,7 +52,7 @@ size_t olm_error();
/** A null terminated string describing the most recent error to happen to an
* account */
const
char
*
olm_account_last_error
(
Olm
Session
*
account
Olm
Account
*
account
);
/** A null terminated string describing the most recent error to happen to a
...
...
@@ -63,7 +63,7 @@ const char * olm_session_last_error(
/** Clears the memory used to back this account */
size_t
olm_clear_account
(
Olm
Session
*
account
Olm
Account
*
account
);
/** Clears the memory used to back this session */
...
...
This diff is collapsed.
Click to expand it.
src/olm.cpp
+
2
−
2
View file @
137aa31e
...
...
@@ -178,7 +178,7 @@ size_t olm_error() {
const
char
*
olm_account_last_error
(
Olm
Session
*
account
Olm
Account
*
account
)
{
unsigned
error
=
unsigned
(
from_c
(
account
)
->
last_error
);
if
(
error
<
sizeof
(
ERRORS
))
{
...
...
@@ -228,7 +228,7 @@ OlmSession * olm_session(
size_t
olm_clear_account
(
Olm
Session
*
account
Olm
Account
*
account
)
{
/* Clear the memory backing the account */
olm
::
unset
(
account
,
sizeof
(
olm
::
Account
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment