summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2010-09-08 11:23:42 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2010-09-08 11:23:42 +0000
commitbe1b6d32ef14022bf84ca1367e5be31817679f90 (patch)
treec4058e2b7db1ff61ec7360a049ed56d407b3410b /legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c
parent471d68222880782912a0573acae90452c17d01ca (diff)
Fix common misspellings
Following misspellings were fixed: alledgedly->allegedly cant->can't carefull->careful consistant->consistent currenly->currently dependancy->dependency descripters->descriptors doesnt->doesn't dosen't->doesn't existant->existent exmaple->example inbetween->between independant->independent isnt->isn't mroe->more neccessary->necessary occured->occurred occurence->occurrence parrallel->parallel particualr->particular preceeding->preceding recieved->received recieves->receives seperate->separate substraction->subtraction succesfully->successfully successfull->successful sucess->success supress->suppress usefull->useful witht->with SVN revision: 51986
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c b/legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c
index 29c6839f7a..28498999bf 100644
--- a/legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c
+++ b/legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c
@@ -87,7 +87,7 @@ _ecore_fb_vt_setup(void)
87 snprintf(buf, sizeof(buf), "/dev/tty%i", _ecore_fb_vt_current_vt); 87 snprintf(buf, sizeof(buf), "/dev/tty%i", _ecore_fb_vt_current_vt);
88 if((_ecore_fb_vt_tty_fd = open(buf, O_RDWR)) < 0) 88 if((_ecore_fb_vt_tty_fd = open(buf, O_RDWR)) < 0)
89 { 89 {
90 printf("[ecore_fb:vt_setup] cant open tty %d\n", _ecore_fb_vt_current_vt); 90 printf("[ecore_fb:vt_setup] can't open tty %d\n", _ecore_fb_vt_current_vt);
91 return 0; 91 return 0;
92 } 92 }
93 close(_ecore_fb_vt_tty0_fd); 93 close(_ecore_fb_vt_tty0_fd);
@@ -103,7 +103,7 @@ _ecore_fb_vt_setup(void)
103 103
104 if(ioctl(_ecore_fb_vt_tty_fd, KDSETMODE, KD_GRAPHICS) < 0) 104 if(ioctl(_ecore_fb_vt_tty_fd, KDSETMODE, KD_GRAPHICS) < 0)
105 { 105 {
106 perror("[ecore_fb:vt_setup] cant set the mode to KD_GRAPHICS"); 106 perror("[ecore_fb:vt_setup] can't set the mode to KD_GRAPHICS");
107 close(_ecore_fb_vt_tty_fd); 107 close(_ecore_fb_vt_tty_fd);
108 return 0; 108 return 0;
109 } 109 }
@@ -116,7 +116,7 @@ _ecore_fb_vt_setup(void)
116 new_vtmode.acqsig = SIGUSR2; 116 new_vtmode.acqsig = SIGUSR2;
117 if(ioctl(_ecore_fb_vt_tty_fd, VT_SETMODE, &new_vtmode) < 0) 117 if(ioctl(_ecore_fb_vt_tty_fd, VT_SETMODE, &new_vtmode) < 0)
118 { 118 {
119 perror("[ecore_fb:vt_setup] cant set the tty mode"); 119 perror("[ecore_fb:vt_setup] can't set the tty mode");
120 close(_ecore_fb_vt_tty_fd); 120 close(_ecore_fb_vt_tty_fd);
121 return 0; 121 return 0;
122 } 122 }
@@ -140,7 +140,7 @@ _ecore_fb_vt_setup(void)
140 close(_ecore_fb_vt_tty_fd); 140 close(_ecore_fb_vt_tty_fd);
141 return 0; 141 return 0;
142 } 142 }
143 /* FIXME assign the fb to the tty in case isnt setup */ 143 /* FIXME assign the fb to the tty in case isn't setup */
144 return 1; 144 return 1;
145} 145}
146 146
@@ -154,13 +154,13 @@ ecore_fb_vt_init(void)
154 _ecore_fb_vt_do_switch = 1; 154 _ecore_fb_vt_do_switch = 1;
155 if((_ecore_fb_vt_tty0_fd = open("/dev/tty0", O_RDONLY)) < 0) 155 if((_ecore_fb_vt_tty0_fd = open("/dev/tty0", O_RDONLY)) < 0)
156 { 156 {
157 printf("[ecore_fb:init] cant open /dev/tty0\n"); 157 printf("[ecore_fb:init] can't open /dev/tty0\n");
158 return 0; 158 return 0;
159 } 159 }
160 /* query current vt state */ 160 /* query current vt state */
161 if((ioctl(_ecore_fb_vt_tty0_fd, VT_GETSTATE, &vtstat)) < 0) 161 if((ioctl(_ecore_fb_vt_tty0_fd, VT_GETSTATE, &vtstat)) < 0)
162 { 162 {
163 printf("[ecore_fb:init] cant get current tty state\n"); 163 printf("[ecore_fb:init] can't get current tty state\n");
164 return 0; 164 return 0;
165 } 165 }
166 _ecore_fb_vt_prev_vt = vtstat.v_active; 166 _ecore_fb_vt_prev_vt = vtstat.v_active;
@@ -171,7 +171,7 @@ ecore_fb_vt_init(void)
171 171
172 if ((ioctl(_ecore_fb_vt_tty0_fd, VT_OPENQRY, &vtno) < 0)) 172 if ((ioctl(_ecore_fb_vt_tty0_fd, VT_OPENQRY, &vtno) < 0))
173 { 173 {
174 printf("[ecore_fb:init] cant query for a vt\n"); 174 printf("[ecore_fb:init] can't query for a vt\n");
175 return 0; 175 return 0;
176 } 176 }
177 _ecore_fb_vt_current_vt = vtno; 177 _ecore_fb_vt_current_vt = vtno;
@@ -181,7 +181,7 @@ ecore_fb_vt_init(void)
181 _ecore_fb_vt_current_vt = _ecore_fb_vt_prev_vt; 181 _ecore_fb_vt_current_vt = _ecore_fb_vt_prev_vt;
182 if(!_ecore_fb_vt_setup()) 182 if(!_ecore_fb_vt_setup())
183 { 183 {
184 printf("[ecore_fb:init] cant setup the vt, restoring previous mode...\n"); 184 printf("[ecore_fb:init] can't setup the vt, restoring previous mode...\n");
185 /* TODO finish this */ 185 /* TODO finish this */
186 if(_ecore_fb_vt_do_switch) 186 if(_ecore_fb_vt_do_switch)
187 { 187 {