X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_mount.h;h=7518188dee7e048793802fac33f6824a90d3e434;hb=f7f5868ee0378791ccd8d1788e27ebf2a02737dc;hp=1f2403c3aa26412acd36046c790db290b0610ff0;hpb=f71895576cbd4b488cd66f0c96efb6fd3e7a6faf;p=collectd.git diff --git a/src/utils_mount.h b/src/utils_mount.h index 1f2403c3..7518188d 100644 --- a/src/utils_mount.h +++ b/src/utils_mount.h @@ -12,10 +12,9 @@ * ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public Licence for more details. * - * You should have received a copy of the GNU General Public - * Licence along with this program; if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, - * USA. + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * Author: * Niki W. Waibel @@ -26,6 +25,7 @@ #ifndef COLLECTD_UTILS_MOUNT_H #define COLLECTD_UTILS_MOUNT_H 1 +#include #if HAVE_FS_INFO_H # include #endif @@ -118,7 +118,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 ','.