diff options
author | schnetter <schnetter@ca4eca94-0e4f-0410-9877-d0c6952cf786> | 2006-10-05 21:46:30 +0000 |
---|---|---|
committer | schnetter <schnetter@ca4eca94-0e4f-0410-9877-d0c6952cf786> | 2006-10-05 21:46:30 +0000 |
commit | 9cfa0e438f7bdd98706eadf3a7dea74d6ce229be (patch) | |
tree | bdb063ea170e14831206edb30b6e2e4e02eefdb8 /src | |
parent | fa2ce86d21788a5ca15c1e84a854928365a44f4c (diff) |
Correct prototypes of scheduled function
git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Nice/trunk@7 ca4eca94-0e4f-0410-9877-d0c6952cf786
Diffstat (limited to 'src')
-rw-r--r-- | src/nice.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -11,9 +11,8 @@ #include <errno.h> #include <sys/resource.h> -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; } |