Skip to content

Commit 0afadc2

Browse files
committed
Add missing headers
1 parent cda8853 commit 0afadc2

File tree

7 files changed

+19
-5
lines changed

7 files changed

+19
-5
lines changed

plugins/telegram/mongo_conn.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#endif
3030

3131
#include <stdio.h>
32+
#include <string.h>
3233

3334
#define MONGO_RETRY_TIMEOUT 60
3435

plugins/telegram/mysql_conn.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include "ejudge/xalloc.h"
2828
#include "ejudge/errlog.h"
2929

30+
#include <stdio.h>
31+
3032
static struct generic_conn *
3133
free_func(struct generic_conn *gc)
3234
{

plugins/telegram/telegram.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@
4040
#include <curl/curl.h>
4141
#endif
4242

43-
#include <pthread.h>
44-
#include <string.h>
4543
#include <ctype.h>
4644
#include <signal.h>
45+
#include <stdio.h>
46+
#include <string.h>
47+
#include <pthread.h>
4748

4849
static struct common_plugin_data *
4950
init_func(void);

plugins/telegram/telegram_chat.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
* GNU General Public License for more details.
1515
*/
1616

17+
#include "telegram_chat.h"
18+
1719
#include "ejudge/bson_utils.h"
20+
1821
#include "ejudge/xalloc.h"
1922
#include "ejudge/errlog.h"
2023
#include "ejudge/osdeps.h"
2124

22-
#include "telegram_chat.h"
2325
#include "mongo_conn.h"
2426

2527
#if HAVE_LIBMONGOC - 0 > 1
@@ -31,6 +33,7 @@
3133
#endif
3234

3335
#include <errno.h>
36+
#include <string.h>
3437

3538
#if HAVE_LIBMONGOC - 0 > 0
3639
struct _bson_t;

plugins/telegram/telegram_chat_state.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
* GNU General Public License for more details.
1515
*/
1616

17+
#include "telegram_chat_state.h"
18+
1719
#include "ejudge/bson_utils.h"
20+
1821
#include "ejudge/xalloc.h"
1922
#include "ejudge/errlog.h"
2023
#include "ejudge/osdeps.h"
2124

22-
#include "telegram_chat_state.h"
2325
#include "mongo_conn.h"
2426

2527
#if HAVE_LIBMONGOC - 0 > 1
@@ -31,6 +33,7 @@
3133
#endif
3234

3335
#include <errno.h>
36+
#include <string.h>
3437

3538
#if HAVE_LIBMONGOC - 0 > 0
3639
struct _bson_t;

plugins/telegram/telegram_subscription.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#endif
3232

3333
#include <errno.h>
34+
#include <stdio.h>
3435
#include <string.h>
3536

3637
#if HAVE_LIBMONGOC - 0 > 0

plugins/telegram/telegram_user.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
* GNU General Public License for more details.
1515
*/
1616

17+
#include "telegram_user.h"
18+
1719
#include "ejudge/bson_utils.h"
20+
1821
#include "ejudge/xalloc.h"
1922
#include "ejudge/errlog.h"
2023
#include "ejudge/osdeps.h"
2124

22-
#include "telegram_user.h"
2325
#include "mongo_conn.h"
2426

2527
#if HAVE_LIBMONGOC - 0 > 1
@@ -31,6 +33,7 @@
3133
#endif
3234

3335
#include <errno.h>
36+
#include <string.h>
3437

3538
#if HAVE_LIBMONGOC - 0 > 0
3639
struct _bson_t;

0 commit comments

Comments
 (0)