Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-tslib: Commit

external/tslib


Commit MetaInfo

Revisión596c50121dcb5ede22011ce1f327905508047067 (tree)
Tiempo2013-08-14 00:43:08
AutorMasaki Muranaka <monaka@mona...>
CommiterChih-Wei Huang

Log Message

ts_calibrate : Truncate pointercal file if it already exists.

This fix is partly done by 1fd999ec678e. But not completed.

Signed-off-by: Masaki Muranaka <monaka@monami-ya.jp>

Cambiar Resumen

Diferencia incremental

--- a/tests/ts_calibrate.c
+++ b/tests/ts_calibrate.c
@@ -277,7 +277,7 @@ int main()
277277 cal_fd = open (calfile, O_CREAT | O_TRUNC | O_RDWR,
278278 S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
279279 } else if (tset != NULL) {
280- cal_fd = open (tset->calfile, O_CREAT | O_RDWR,
280+ cal_fd = open (tset->calfile, O_CREAT | O_TRUNC | O_RDWR,
281281 S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
282282 } else {
283283 cal_fd = open (TS_POINTERCAL, O_CREAT | O_TRUNC | O_RDWR,
Show on old repository browser