Skip to content

Commit e0c9bfb

Browse files
committed
Include system headers consistently
Problem: A few files include system headers after local project headers. Solution: For consistency to rest of flux-core, always include system headers first.
1 parent 563abd5 commit e0c9bfb

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/common/libflux/test/version.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
* SPDX-License-Identifier: LGPL-3.0
99
\************************************************************/
1010

11+
#include <string.h>
12+
1113
#include "src/common/libflux/version.h"
1214
#include "src/common/libtap/tap.h"
1315
#include "ccan/str/str.h"
1416

15-
#include <string.h>
16-
1717
int main (int argc, char *argv[])
1818
{
1919
const char *s;

src/common/libpmi/test/keyval.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
* SPDX-License-Identifier: LGPL-3.0
99
\************************************************************/
1010

11+
#include <string.h>
12+
#include <ctype.h>
13+
1114
#include "src/common/libtap/tap.h"
1215
#include "src/common/libpmi/keyval.h"
1316
#include "ccan/str/str.h"
1417

15-
#include <string.h>
16-
#include <ctype.h>
17-
1818
static char *valid[] = {
1919
"key1=val1",
2020
"key1=val1 ",

src/common/libutil/test/stdlog.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
* SPDX-License-Identifier: LGPL-3.0
99
\************************************************************/
1010

11+
#include <string.h>
12+
#include <ctype.h>
13+
1114
#include "src/common/libtap/tap.h"
1215
#include "src/common/libutil/wallclock.h"
1316
#include "src/common/libutil/stdlog.h"
1417
#include "ccan/str/str.h"
1518

16-
#include <string.h>
17-
#include <ctype.h>
18-
1919
static char *valid[] = {
2020
"<1>1 - - - - - - message",
2121
"<23>1 - - - - - - message",

src/common/libutil/test/wallclock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
* SPDX-License-Identifier: LGPL-3.0
99
\************************************************************/
1010

11+
#include <string.h>
12+
#include <ctype.h>
13+
1114
#include "src/common/libtap/tap.h"
1215
#include "src/common/libutil/wallclock.h"
1316
#include "src/common/libutil/stdlog.h"
1417

15-
#include <string.h>
16-
#include <ctype.h>
17-
1818
int main(int argc, char** argv)
1919
{
2020
char buf[WALLCLOCK_MAXLEN];

0 commit comments

Comments
 (0)