Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
9d81046f
Commit
9d81046f
authored
Jun 25, 2018
by
manuroe
Committed by
Hubert Chathi
Jun 27, 2018
Browse files
Fix warnings reported by LLVM
parent
ddc981c4
Changes
6
Hide whitespace changes
Inline
Side-by-side
include/olm/inbound_group_session.h
View file @
9d81046f
...
@@ -25,7 +25,7 @@ extern "C" {
...
@@ -25,7 +25,7 @@ extern "C" {
typedef
struct
OlmInboundGroupSession
OlmInboundGroupSession
;
typedef
struct
OlmInboundGroupSession
OlmInboundGroupSession
;
/** get the size of an inbound group session, in bytes. */
/** get the size of an inbound group session, in bytes. */
size_t
olm_inbound_group_session_size
();
size_t
olm_inbound_group_session_size
(
void
);
/**
/**
* Initialise an inbound group session object using the supplied memory
* Initialise an inbound group session object using the supplied memory
...
...
include/olm/olm.h
View file @
9d81046f
...
@@ -39,13 +39,13 @@ typedef struct OlmUtility OlmUtility;
...
@@ -39,13 +39,13 @@ typedef struct OlmUtility OlmUtility;
void
olm_get_library_version
(
uint8_t
*
major
,
uint8_t
*
minor
,
uint8_t
*
patch
);
void
olm_get_library_version
(
uint8_t
*
major
,
uint8_t
*
minor
,
uint8_t
*
patch
);
/** The size of an account object in bytes */
/** The size of an account object in bytes */
size_t
olm_account_size
();
size_t
olm_account_size
(
void
);
/** The size of a session object in bytes */
/** The size of a session object in bytes */
size_t
olm_session_size
();
size_t
olm_session_size
(
void
);
/** The size of a utility object in bytes */
/** The size of a utility object in bytes */
size_t
olm_utility_size
();
size_t
olm_utility_size
(
void
);
/** Initialise an account object using the supplied memory
/** Initialise an account object using the supplied memory
* The supplied memory must be at least olm_account_size() bytes */
* The supplied memory must be at least olm_account_size() bytes */
...
@@ -66,7 +66,7 @@ OlmUtility * olm_utility(
...
@@ -66,7 +66,7 @@ OlmUtility * olm_utility(
);
);
/** The value that olm will return from a function if there was an error */
/** The value that olm will return from a function if there was an error */
size_t
olm_error
();
size_t
olm_error
(
void
);
/** A null terminated string describing the most recent error to happen to an
/** A null terminated string describing the most recent error to happen to an
* account */
* account */
...
...
include/olm/outbound_group_session.h
View file @
9d81046f
...
@@ -25,7 +25,7 @@ extern "C" {
...
@@ -25,7 +25,7 @@ extern "C" {
typedef
struct
OlmOutboundGroupSession
OlmOutboundGroupSession
;
typedef
struct
OlmOutboundGroupSession
OlmOutboundGroupSession
;
/** get the size of an outbound group session, in bytes. */
/** get the size of an outbound group session, in bytes. */
size_t
olm_outbound_group_session_size
();
size_t
olm_outbound_group_session_size
(
void
);
/**
/**
* Initialise an outbound group session object using the supplied memory
* Initialise an outbound group session object using the supplied memory
...
...
src/inbound_group_session.c
View file @
9d81046f
...
@@ -58,7 +58,7 @@ struct OlmInboundGroupSession {
...
@@ -58,7 +58,7 @@ struct OlmInboundGroupSession {
enum
OlmErrorCode
last_error
;
enum
OlmErrorCode
last_error
;
};
};
size_t
olm_inbound_group_session_size
()
{
size_t
olm_inbound_group_session_size
(
void
)
{
return
sizeof
(
OlmInboundGroupSession
);
return
sizeof
(
OlmInboundGroupSession
);
}
}
...
...
src/olm.cpp
View file @
9d81046f
...
@@ -104,7 +104,7 @@ void olm_get_library_version(uint8_t *major, uint8_t *minor, uint8_t *patch) {
...
@@ -104,7 +104,7 @@ void olm_get_library_version(uint8_t *major, uint8_t *minor, uint8_t *patch) {
if
(
patch
!=
NULL
)
*
patch
=
OLMLIB_VERSION_PATCH
;
if
(
patch
!=
NULL
)
*
patch
=
OLMLIB_VERSION_PATCH
;
}
}
size_t
olm_error
()
{
size_t
olm_error
(
void
)
{
return
std
::
size_t
(
-
1
);
return
std
::
size_t
(
-
1
);
}
}
...
@@ -131,16 +131,16 @@ const char * olm_utility_last_error(
...
@@ -131,16 +131,16 @@ const char * olm_utility_last_error(
return
_olm_error_to_string
(
error
);
return
_olm_error_to_string
(
error
);
}
}
size_t
olm_account_size
()
{
size_t
olm_account_size
(
void
)
{
return
sizeof
(
olm
::
Account
);
return
sizeof
(
olm
::
Account
);
}
}
size_t
olm_session_size
()
{
size_t
olm_session_size
(
void
)
{
return
sizeof
(
olm
::
Session
);
return
sizeof
(
olm
::
Session
);
}
}
size_t
olm_utility_size
()
{
size_t
olm_utility_size
(
void
)
{
return
sizeof
(
olm
::
Utility
);
return
sizeof
(
olm
::
Utility
);
}
}
...
...
src/outbound_group_session.c
View file @
9d81046f
...
@@ -43,7 +43,7 @@ struct OlmOutboundGroupSession {
...
@@ -43,7 +43,7 @@ struct OlmOutboundGroupSession {
};
};
size_t
olm_outbound_group_session_size
()
{
size_t
olm_outbound_group_session_size
(
void
)
{
return
sizeof
(
OlmOutboundGroupSession
);
return
sizeof
(
OlmOutboundGroupSession
);
}
}
...
...
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