From: Alan Knowles Date: Thu, 15 Aug 2002 09:39:35 +0000 (+0000) Subject: changed default stop bits to a valid value X-Git-Tag: php-4.3.0dev_zend2_alpha3~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d46bdbde66269d088ce07d62ae6f53a8562f5154;p=php changed default stop bits to a valid value --- diff --git a/ext/dio/dio.c b/ext/dio/dio.c index 79fc747b6a..c25a9b5ecb 100644 --- a/ext/dio/dio.c +++ b/ext/dio/dio.c @@ -421,7 +421,7 @@ PHP_FUNCTION(dio_tcsetattr) 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 @@ PHP_FUNCTION(dio_tcsetattr) } if (zend_hash_find(fh, "stop", sizeof("stop"), (void **) &element) == FAILURE) { - Stop_Bits = 0; + Stop_Bits = 1; } else { Stop_Bits = Z_LVAL_PP(element);