summaryrefslogtreecommitdiffstats
path: root/include/strutils.h
diff options
context:
space:
mode:
authorSami Kerola2015-01-10 19:03:25 +0100
committerKarel Zak2015-06-29 13:39:37 +0200
commit3e5a54554dd1495d10427163e911c24ba4c9e558 (patch)
treed4a667f77e0d2c20d0fbb211e866c3f4dd6ac181 /include/strutils.h
parentrtcwake: remove RTC_ALM_READ and RTC_ALM_SET compatibility (diff)
downloadkernel-qcow2-util-linux-3e5a54554dd1495d10427163e911c24ba4c9e558.tar.gz
kernel-qcow2-util-linux-3e5a54554dd1495d10427163e911c24ba4c9e558.tar.xz
kernel-qcow2-util-linux-3e5a54554dd1495d10427163e911c24ba4c9e558.zip
rtcwake: improve read_clock_mode()
Make skipping two lines more robust, and add message about unexpected adjfile contents when running with --verbose. Reviewed-by: Karel Zak <kzak@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include/strutils.h')
-rw-r--r--include/strutils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/strutils.h b/include/strutils.h
index 9eb9c8127..ec2a8acd6 100644
--- a/include/strutils.h
+++ b/include/strutils.h
@@ -6,6 +6,7 @@
#include <string.h>
#include <sys/types.h>
#include <ctype.h>
+#include <stdio.h>
/* default strtoxx_or_err() exit code */
#ifndef STRTOXX_EXIT_CODE
@@ -207,4 +208,6 @@ extern char *strnappend(const char *s, const char *suffix, size_t b);
extern char *strappend(const char *s, const char *suffix);
extern const char *split(const char **state, size_t *l, const char *separator, int quoted);
+extern int skip_fline(FILE *fp);
+
#endif