--- projects/libstatgrab/examples/vm_stats.c 2003/08/24 19:15:11 1.1 +++ projects/libstatgrab/examples/vm_stats.c 2003/11/07 18:43:56 1.3 @@ -1,7 +1,7 @@ /* * i-scream central monitoring system - * http://www.i-scream.org.uk - * Copyright (C) 2000-2002 i-scream + * http://www.i-scream.org + * Copyright (C) 2000-2003 i-scream * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -35,7 +35,7 @@ int main(int argc, char **argv){ long long total, free; - while ((c = getopt(argc, argv, "d:")) != EOF){ + while ((c = getopt(argc, argv, "d:")) != -1){ switch (c){ case 'd': delay = atoi(optarg);