Skip to content

Commit ef5fecf

Browse files
Fixed pointers style
1 parent c35662a commit ef5fecf

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/common/os/os_utils.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ namespace os_utils
105105
return rc;
106106
}
107107

108-
inline int stat(const char *path, struct STAT *buf)
108+
inline int stat(const char* path, struct STAT* buf)
109109
{
110110
int rc;
111111
do {
@@ -118,7 +118,7 @@ namespace os_utils
118118
return rc;
119119
}
120120

121-
inline int fstat(int fd, struct STAT *buf)
121+
inline int fstat(int fd, struct STAT* buf)
122122
{
123123
int rc;
124124
do {
@@ -131,7 +131,7 @@ namespace os_utils
131131
return rc;
132132
}
133133

134-
inline int fgetpos(FILE *stream, fpos_t *pos)
134+
inline int fgetpos(FILE* stream, fpos_t* pos)
135135
{
136136
int rc;
137137
do {
@@ -144,7 +144,7 @@ namespace os_utils
144144
return rc;
145145
}
146146

147-
inline int fsetpos(FILE *stream, const fpos_t *pos)
147+
inline int fsetpos(FILE* stream, const fpos_t* pos)
148148
{
149149
int rc;
150150
do {
@@ -171,20 +171,20 @@ namespace os_utils
171171
return rc;
172172
}
173173

174-
inline int mkstemp(char *__template)
174+
inline int mkstemp(char* templ)
175175
{
176176
int rc;
177177
do {
178178
#ifdef LSB_BUILD
179-
rc = mkstemp64(__template);
179+
rc = mkstemp64(templ);
180180
#else
181-
rc = ::mkstemp(__template);
181+
rc = ::mkstemp(templ);
182182
#endif
183183
} while (rc == -1 && SYSCALL_INTERRUPTED(errno));
184184
return rc;
185185
}
186186

187-
inline ssize_t pread(int fd, void *buf, size_t count, off_t offset)
187+
inline ssize_t pread(int fd, void* buf, size_t count, off_t offset)
188188
{
189189
// Don't check EINTR because it's done by caller
190190
return
@@ -195,7 +195,7 @@ namespace os_utils
195195
#endif
196196
}
197197

198-
inline ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset)
198+
inline ssize_t pwrite(int fd, const void* buf, size_t count, off_t offset)
199199
{
200200
// Don't check EINTR because it's done by caller
201201
return
@@ -206,7 +206,7 @@ namespace os_utils
206206
#endif
207207
}
208208

209-
inline struct dirent *readdir(DIR *dirp)
209+
inline struct dirent* readdir(DIR* dirp)
210210
{
211211
struct dirent* rc;
212212
do {
@@ -219,7 +219,7 @@ namespace os_utils
219219
return rc;
220220
}
221221

222-
inline void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset)
222+
inline void* mmap(void* addr, size_t length, int prot, int flags, int fd, off_t offset)
223223
{
224224
void* rc;
225225
do {
@@ -245,7 +245,7 @@ namespace os_utils
245245
return rc;
246246
}
247247

248-
inline int lstat(const char *path, struct STAT *buf)
248+
inline int lstat(const char* path, struct STAT* buf)
249249
{
250250
int rc;
251251
do {
@@ -271,7 +271,7 @@ namespace os_utils
271271
return rc;
272272
}
273273

274-
inline int getrlimit(int resource, struct rlimit *rlim)
274+
inline int getrlimit(int resource, struct rlimit* rlim)
275275
{
276276
int rc;
277277
do {
@@ -284,7 +284,7 @@ namespace os_utils
284284
return rc;
285285
}
286286

287-
inline int setrlimit(int resource, const struct rlimit *rlim)
287+
inline int setrlimit(int resource, const struct rlimit* rlim)
288288
{
289289
int rc;
290290
do {

0 commit comments

Comments
 (0)