X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fusers.c;h=a4ee4ef7d1df2c2afc619b9ade1b0598a8a60ae9;hb=8361c1e963f9184c3c4d87197fd6996d667cdb3f;hp=10f34ee9483023959cc129c6e53a7e29e18e18c5;hpb=8aad55ab7d737a97d5927458b2b00885e27cae4d;p=collectd.git diff --git a/src/users.c b/src/users.c index 10f34ee9..a4ee4ef7 100644 --- a/src/users.c +++ b/src/users.c @@ -3,7 +3,7 @@ * Copyright (C) 2005-2007 Sebastian Harl * Copyright (C) 2005 Niki W. Waibel * Copyright (C) 2005-2007 Florian octo Forster - * Copyright (C) 2008 Oleg King + * Copyright (C) 2008 Oleg King * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -40,9 +40,6 @@ #elif HAVE_UTMP_H # include /* #endif HAVE_UTMP_H */ - -#else -# error "No applicable input method." #endif static void users_submit (gauge_t value) @@ -80,7 +77,7 @@ static int users_read (void) users_submit (users); /* #endif HAVE_GETUTXENT */ - + #elif HAVE_GETUTENT unsigned int users = 0; struct utmp *entry = NULL; @@ -109,7 +106,7 @@ static int users_read (void) us = sg_get_user_stats (); # endif if (us == NULL) - return (-1); + return (-1); users_submit ((gauge_t) # if HAVE_LIBSTATGRAB_0_90