From 9cfa0e438f7bdd98706eadf3a7dea74d6ce229be Mon Sep 17 00:00:00 2001 From: schnetter Date: Thu, 5 Oct 2006 21:46:30 +0000 Subject: Correct prototypes of scheduled function git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Nice/trunk@7 ca4eca94-0e4f-0410-9877-d0c6952cf786 --- src/nice.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/nice.c b/src/nice.c index 1036ad1..951cb4f 100644 --- a/src/nice.c +++ b/src/nice.c @@ -11,9 +11,8 @@ #include #include -void Nice_Renice(CCTK_ARGUMENTS) +int Nice_Renice(void) { - /* do not declare the arguments, it will cause an error */ DECLARE_CCTK_PARAMETERS int old_nice, new_nice, nice_return_value; @@ -51,8 +50,6 @@ void Nice_Renice(CCTK_ARGUMENTS) errno); } CCTK_WARN(0, "This should never occur."); - /* in case CCTK_WARN did not stop the code */ - CCTK_Abort(cctkGH, 1); } errno=0; @@ -90,8 +87,7 @@ void Nice_Renice(CCTK_ARGUMENTS) "setpriority got undocumented errno %d", errno); } - /* in case CCTK_WARN did not stop the code */ - CCTK_Abort(cctkGH, 1); + CCTK_WARN(0, "This should never occur."); } errno=0; @@ -126,8 +122,6 @@ void Nice_Renice(CCTK_ARGUMENTS) errno); } CCTK_WARN(0, "This should never occur."); - /* in case CCTK_WARN did not stop the code */ - CCTK_Abort(cctkGH, 1); } if (new_nice == Nice_nice) @@ -143,5 +137,6 @@ void Nice_Renice(CCTK_ARGUMENTS) new_nice, Nice_nice); } + return 0; } -- cgit v1.2.3