X-Git-Url: https://git.octo.it/?p=sort-networks.git;a=blobdiff_plain;f=src%2Fsn-apply.c;h=f70b37882801bfefd69960a415b35091b0963238;hp=dc0ede2198c9250e762a65abf6c86cda5ede07bf;hb=52f19651f661aec496aea1ba0cfc694db848cfc3;hpb=f35c47cabbc75b05286e335dc92206b3afb08825 diff --git a/src/sn-apply.c b/src/sn-apply.c index dc0ede2..f70b378 100644 --- a/src/sn-apply.c +++ b/src/sn-apply.c @@ -1,5 +1,5 @@ /** - * collectd - src/sn-apply.c + * libsortnetwork - src/sn-apply.c * Copyright (C) 2008-2010 Florian octo Forster * * This program is free software; you can redistribute it and/or modify it @@ -19,12 +19,7 @@ * Florian octo Forster **/ -#ifndef _ISOC99_SOURCE -# define _ISOC99_SOURCE -#endif -#ifndef _POSIX_C_SOURCE -# define _POSIX_C_SOURCE 200112L -#endif +#include "config.h" #include #include @@ -40,7 +35,6 @@ #include #include "sn_network.h" -#include "sn_population.h" #include "sn_random.h" static sn_network_t *network = NULL; @@ -53,7 +47,7 @@ static void exit_usage (const char *name) " -i File holding the network (REQUIRED)\n" "\n", name); - exit (1); + exit (EXIT_FAILURE); } /* void exit_usage */ int read_options (int argc, char **argv) @@ -197,8 +191,8 @@ int main (int argc, char **argv) } if (status < 0) - return (1); - return (0); + exit (EXIT_FAILURE); + exit (EXIT_SUCCESS); } /* int main */ /* vim: set shiftwidth=2 softtabstop=2 : */