Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=30553e34b3f67b5afe6834ceb6dcc24602ff5527
commit 30553e34b3f67b5afe6834ceb6dcc24602ff5527 Author: Laszlo Papp <[email protected]> Date: Sat Nov 14 08:06:22 2009 +0100 Fix the argument of close statement in the api, util.c * close(file) wasn't okay, because close() wait an integer file descriptor to close, so it was changed for the real close(fd) situation. * So it caused error during building time diff --git a/lib/libpacman/util.c b/lib/libpacman/util.c index 62b3944..bd24cd3 100644 --- a/lib/libpacman/util.c +++ b/lib/libpacman/util.c @@ -240,7 +240,7 @@ int _pacman_lckmk(char *file) if(++count < 1) { sleep(1); } else { - close(file); + close(fd); return(-1); } } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
