X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=task.cc;h=99743b8a6707302efc0ecadcbb0426107f8eb6e8;hb=599bf3fa2eb01b05ec677b628e65adb2fe4f91c3;hp=013c70a835acbeaea212e7e8d1c201691df95d43;hpb=5c68b9412710739cc0562ab296a9c8af13e9e71c;p=universe.git diff --git a/task.cc b/task.cc index 013c70a..99743b8 100644 --- a/task.cc +++ b/task.cc @@ -1,17 +1,6 @@ -//////////////////////////////////////////////////////////////////////////////// -// This program is free software; you can redistribute it and/or // -// modify it under the terms of the GNU General Public License // -// version 2 as published by the Free Software Foundation. // -// // -// This program is distributed in the hope that it will be useful, but // -// WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // -// General Public License for more details. // -// // -// Written and (C) by François Fleuret // -// Contact for comments & bug reports // -//////////////////////////////////////////////////////////////////////////////// +// Written and (C) by Francois Fleuret +// Contact for comments & bug reports #include #include @@ -26,7 +15,7 @@ Task::~Task() { } typedef Task *TaskConstructor(); -Task *load_task(char *filename) { +Task *load_task(const char *filename) { void *handle = dlopen(filename, RTLD_NOW | RTLD_GLOBAL); if(handle == 0) {