comparison libvo/vo_vesa.c @ 8792:c2e0f2cd8666

10l
author filon
date Sun, 05 Jan 2003 11:30:39 +0000
parents 668b30187d48
children bcf4bf10f9c7
comparison
equal deleted inserted replaced
8791:668b30187d48 8792:c2e0f2cd8666
1023 // check if we can open /dev/mem (it will be opened later in config(), but if we 1023 // check if we can open /dev/mem (it will be opened later in config(), but if we
1024 // detect now that we can't we can exit cleanly) 1024 // detect now that we can't we can exit cleanly)
1025 fd = open("/dev/mem", O_RDWR); 1025 fd = open("/dev/mem", O_RDWR);
1026 if (fd < 0) 1026 if (fd < 0)
1027 return -1; 1027 return -1;
1028 else
1029 close(fd);
1028 if(verbose > 2) 1030 if(verbose > 2)
1029 printf("vo_subdevice: initialization returns: %i\n",pre_init_err); 1031 printf("vo_subdevice: initialization returns: %i\n",pre_init_err);
1030 return pre_init_err; 1032 return pre_init_err;
1031 } 1033 }
1032 1034