X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Ffb-param.c;h=dafd23edde9f05c026621f8dfe18d7fa5400da11;hb=1ac0074ba074457f7910c3ed97f5bd73bd547582;hp=bde4b58f352765878cbadfb473fb14fb712e9a14;hpb=031256ad2e123eec58521f8e3eb9496c197641d2;p=libucw.git diff --git a/ucw/fb-param.c b/ucw/fb-param.c index bde4b58f..dafd23ed 100644 --- a/ucw/fb-param.c +++ b/ucw/fb-param.c @@ -108,7 +108,7 @@ bopen_file_internal(const char *name, int mode, struct fb_params *params, int tr #endif if (params->type == FB_MMAP && (mode & O_ACCMODE) == O_WRONLY) mode = (mode & ~O_ACCMODE) | O_RDWR; - int fd = sh_open(name, mode, 0666); + int fd = ucw_open(name, mode, 0666); if (fd < 0) if (try) return NULL; @@ -134,9 +134,9 @@ bopen_file_try(const char *name, int mode, struct fb_params *params) } struct fastbuf * -bopen_fd(int fd, struct fb_params *params) +bopen_fd_name(int fd, struct fb_params *params, const char *name) { - return bopen_fd_internal(fd, params ? : &fbpar_def, ~0U, NULL); + return bopen_fd_internal(fd, params ? : &fbpar_def, ~0U, name); } /* Function for use by individual file back-ends */