cvs: php4 /ext/dio dio.c
| From: | Alan Knowles | Date: | Thu, 15 Aug 2002 09:39:35 +0000 |
| Subject: | cvs: php4 /ext/dio dio.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13382@lists.php.net to get a copy of this message | ||
alan_k Thu Aug 15 05:39:35 2002 EDT
Modified files:
/php4/ext/dio dio.c
Log:
changed default stop bits to a valid value
Index: php4/ext/dio/dio.c
diff -u php4/ext/dio/dio.c:1.17 php4/ext/dio/dio.c:1.18
--- php4/ext/dio/dio.c:1.17 Thu Aug 15 05:37:26 2002
+++ php4/ext/dio/dio.c Thu Aug 15 05:39:35 2002
@@ -421,7 +421,7 @@
php_fd_t *f;
int cmd;
struct termios newtio;
- int Baud_Rate, Data_Bits=8, Stop_Bits=0, Parity=1;
+ int Baud_Rate, Data_Bits=8, Stop_Bits=1, Parity=0;
long BAUD,DATABITS,STOPBITS,PARITYON,PARITY;
HashTable *fh;
zval **element;
@@ -456,7 +456,7 @@
}
if (zend_hash_find(fh, "stop", sizeof("stop"), (void **) &element)
== FAILURE) {
- Stop_Bits = 0;
+ Stop_Bits = 1;
}
else {
Stop_Bits = Z_LVAL_PP(element);