Minor improvements.

GitOrigin-RevId: a50ba2cc0b47b395d7d7787ad59868d23bf22634
This commit is contained in:
levlam 2019-09-08 03:49:16 +03:00
parent c0119d0b89
commit abb140a714
3 changed files with 5 additions and 2 deletions

View File

@ -1244,7 +1244,7 @@ class MessagesManager : public Actor {
};
struct PendingSecretMessage {
enum class Type { NewMessage, DeleteMessages, DeleteHistory };
enum class Type : int32 { NewMessage, DeleteMessages, DeleteHistory };
Type type = Type::NewMessage;
// for NewMessage

View File

@ -4,6 +4,8 @@
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "td/utils/common.h"
#include "td/utils/logging.h"
#include "td/utils/Random.h"
#include "td/utils/tests.h"

View File

@ -79,7 +79,8 @@ void ThreadPthread::detach() {
}
}
int ThreadPthread::do_pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg) {
int ThreadPthread::do_pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *),
void *arg) {
return pthread_create(thread, attr, start_routine, arg);
}