projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8569a77
)
mkdir: modernize header ifdefs
author
Lennart Poettering
<lennart@poettering.net>
Wed, 6 Nov 2013 21:59:23 +0000
(22:59 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 6 Nov 2013 22:03:12 +0000
(23:03 +0100)
src/shared/mkdir.h
patch
|
blob
|
history
diff --git
a/src/shared/mkdir.h
b/src/shared/mkdir.h
index
5b34db4
..
eb73902
100644
(file)
--- a/
src/shared/mkdir.h
+++ b/
src/shared/mkdir.h
@@
-1,7
+1,6
@@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef foomkdirhfoo
-#define foomkdirhfoo
+#pragma once
/***
This file is part of systemd.
@@
-42,4
+41,3
@@
typedef int (*mkdir_func_t)(const char *pathname, mode_t mode);
int mkdir_safe_internal(const char *path, mode_t mode, uid_t uid, gid_t gid, mkdir_func_t _mkdir);
int mkdir_parents_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir);
int mkdir_p_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir);
-#endif