X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_mount.h;h=bc0077f95db3cac3fbf44cc637cc81bb9ddb87b2;hb=1bbefd777881fee2534b976d161743c5fe6fc536;hp=cab5c01ea5ea2c783629826cbb361eb9f6f3050f;hpb=601abecb59b6041e84f11877345a98efba7b651b;p=collectd.git diff --git a/src/utils_mount.h b/src/utils_mount.h index cab5c01e..bc0077f9 100644 --- a/src/utils_mount.h +++ b/src/utils_mount.h @@ -23,11 +23,10 @@ /* See below for instructions how to use the public functions. */ -#if !COLLECTD_UTILS_MOUNT_H +#ifndef COLLECTD_UTILS_MOUNT_H #define COLLECTD_UTILS_MOUNT_H 1 -#include "common.h" - +#include #if HAVE_FS_INFO_H # include #endif @@ -120,7 +119,7 @@ char *cu_mount_checkoption(char *line, char *keyword, int full); DESCRIPTION The cu_mount_checkoption() function is a replacement of char *hasmntopt(const struct mntent *mnt, const char *opt). - In fact hasmntopt() just looks for the first occurence of the + In fact hasmntopt() just looks for the first occurrence of the characters at opt in mnt->mnt_opts. cu_mount_checkoption() checks for the *option* keyword in line, starting at the first character of line or after a ','.