--- projects/libstatgrab/examples/process_stats.c 2003/08/21 22:48:19 1.1 +++ projects/libstatgrab/examples/process_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 @@ -32,7 +32,7 @@ int main(int argc, char **argv){ int delay = 1; process_stat_t *process_stat; - while ((c = getopt(argc, argv, "d:")) != EOF){ + while ((c = getopt(argc, argv, "d:")) != -1){ switch (c){ case 'd': delay = atoi(optarg);