summaryrefslogtreecommitdiffstats
path: root/hwclock/clock.h
diff options
context:
space:
mode:
authorSami Kerola2011-07-24 17:35:43 +0200
committerSami Kerola2011-07-26 17:27:18 +0200
commitef71b8f1128b72bf072f1bd0a306b1bb06781a40 (patch)
tree14c87f9c2a58cb8f1a95e98fa7793dbb5fb2b502 /hwclock/clock.h
parenthwclock: remove misleading information (diff)
downloadkernel-qcow2-util-linux-ef71b8f1128b72bf072f1bd0a306b1bb06781a40.tar.gz
kernel-qcow2-util-linux-ef71b8f1128b72bf072f1bd0a306b1bb06781a40.tar.xz
kernel-qcow2-util-linux-ef71b8f1128b72bf072f1bd0a306b1bb06781a40.zip
hwclock: coding style clean up
Despide amount of the change this change should be harmless. Everything is about indendation, comment restructuring etc not code changes. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'hwclock/clock.h')
-rw-r--r--hwclock/clock.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/hwclock/clock.h b/hwclock/clock.h
index e4eb7eba8..8d1befe8f 100644
--- a/hwclock/clock.h
+++ b/hwclock/clock.h
@@ -1,20 +1,20 @@
#ifndef HWCLOCK_CLOCK_H
#define HWCLOCK_CLOCK_H
+#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <errno.h> /* for errno, EPERM, EINVAL, ENOENT */
#include <time.h>
#include "c.h"
struct clock_ops {
char *interface_name;
- int (*get_permissions)(void);
- int (*read_hardware_clock)(struct tm *tm);
- int (*set_hardware_clock)(const struct tm *tm);
- int (*synchronize_to_clock_tick)(void);
+ int (*get_permissions) (void);
+ int (*read_hardware_clock) (struct tm * tm);
+ int (*set_hardware_clock) (const struct tm * tm);
+ int (*synchronize_to_clock_tick) (void);
};
extern struct clock_ops *probe_for_cmos_clock(void);
@@ -29,9 +29,9 @@ extern int debug;
extern int epoch_option;
extern void outsyserr(char *msg, ...)
#ifdef __GNUC__
- __attribute__ ((format (printf, 1, 2)));
+ __attribute__ ((format(printf, 1, 2)));
#else
- ;
+ ;
#endif
extern double time_diff(struct timeval subtrahend, struct timeval subtractor);
/* cmos.c */
@@ -50,4 +50,4 @@ extern void hwaudit_exit(int status);
# define hwclock_exit(_status) exit(_status)
#endif
-#endif /* HWCLOCK_CLOCK_H */
+#endif /* HWCLOCK_CLOCK_H */