X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fpool.c;h=a0dc99e32d79467e0955a0c0dcddc7258f93e4d0;hb=3f2ed1c5fe6dc692ca00bb18a15e41617fa2d37d;hp=105937b99885262c2e8d0ec609f61bc471f09087;hpb=a7a18bd636d11d167c1ebe54c9893a0c23d44bc9;p=pspp-builds.git diff --git a/src/libpspp/pool.c b/src/libpspp/pool.c index 105937b9..a0dc99e3 100644 --- a/src/libpspp/pool.c +++ b/src/libpspp/pool.c @@ -621,18 +621,18 @@ pool_add_subpool (struct pool *pool, struct pool *subpool) subpool->parent = pool; } -/* Opens file FILENAME with mode MODE and returns a handle to it +/* Opens file FILE_NAME with mode MODE and returns a handle to it if successful or a null pointer if not. The file will be closed automatically when POOL is destroyed, or it may be closed explicitly in advance using pool_fclose(), or detached from the pool with pool_detach_file(). */ FILE * -pool_fopen (struct pool *pool, const char *filename, const char *mode) +pool_fopen (struct pool *pool, const char *file_name, const char *mode) { FILE *f; - assert (pool && filename && mode); - f = fopen (filename, mode); + assert (pool && file_name && mode); + f = fopen (file_name, mode); if (f == NULL) return NULL;