mirror of
https://github.com/linux-msm/qdl.git
synced 2026-02-25 13:12:25 -08:00
Address all obvious coding style issues caught by checkpatch.pl tool. sha2.c and sha2.h were kept as there are. Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
25 lines
420 B
C
25 lines
420 B
C
#ifndef __OSCOMPAT_H__
|
|
#define __OSCOMPAT_H__
|
|
|
|
#ifndef _WIN32
|
|
|
|
#include <err.h>
|
|
|
|
#define O_BINARY 0
|
|
|
|
#else // _WIN32
|
|
|
|
#include <sys/time.h>
|
|
#include <stdbool.h>
|
|
|
|
void timeradd(const struct timeval *a, const struct timeval *b, struct timeval *result);
|
|
|
|
void err(int eval, const char *fmt, ...);
|
|
void errx(int eval, const char *fmt, ...);
|
|
void warn(const char *fmt, ...);
|
|
void warnx(const char *fmt, ...);
|
|
|
|
#endif
|
|
|
|
#endif
|