Skip to content

Commit 0fa617a

Browse files
author
git-core
committed
Move headers required by PLOGE in su.h
1 parent 2899822 commit 0fa617a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

su.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@
2424
#include <unistd.h>
2525
#include <limits.h>
2626
#include <fcntl.h>
27-
#include <errno.h>
2827
#include <endian.h>
2928
#include <stdio.h>
3029
#include <stdlib.h>
31-
#include <string.h>
3230
#include <getopt.h>
3331
#include <stdint.h>
3432
#include <pwd.h>

su.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ static inline char *get_command(const struct su_request *to)
108108
#define LOGW(fmt,args...) fprintf(stderr, fmt, ##args)
109109
#endif
110110

111+
#include <errno.h>
112+
#include <string.h>
111113
#define PLOGE(fmt,args...) LOGE(fmt " failed with %d: %s", ##args, errno, strerror(errno))
112114
#define PLOGEV(fmt,err,args...) LOGE(fmt " failed with %d: %s", ##args, err, strerror(err))
113115

0 commit comments

Comments
 (0)