cvs: php-src /ext/dio dio.c

From: Date: Mon, 01 Dec 2003 16:37:13 +0000
Subject: cvs: php-src /ext/dio dio.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-24794@lists.php.net to get a copy of this message
sniper Mon Dec 1 11:37:13 2003 EDT Modified files: /php-src/ext/dio dio.c Log: WS fix Index: php-src/ext/dio/dio.c diff -u php-src/ext/dio/dio.c:1.30 php-src/ext/dio/dio.c:1.31 --- php-src/ext/dio/dio.c:1.30 Mon Dec 1 11:36:00 2003 +++ php-src/ext/dio/dio.c Mon Dec 1 11:37:11 2003 @@ -424,13 +424,13 @@ long BAUD,DATABITS,STOPBITS,PARITYON,PARITY; HashTable *fh; zval **element; - + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz", &r_fd, &arg) == FAILURE) { return; } ZEND_FETCH_RESOURCE(f, php_fd_t *, &r_fd, -1, le_fd_name, le_fd); - + if (Z_TYPE_P(arg) != IS_ARRAY) { php_error_docref(NULL TSRMLS_CC, E_WARNING,"tcsetattr, third argument should be an associative array"); return; @@ -462,8 +462,8 @@ Parity = Z_LVAL_PP(element); } - /* assign to correct values... */ - switch (Baud_Rate) { + /* assign to correct values... */ + switch (Baud_Rate) { case 38400: BAUD = B38400; break; @@ -559,7 +559,7 @@ php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid parity %d", Parity); RETURN_FALSE; } - + newtio.c_cflag = BAUD | CRTSCTS | DATABITS | STOPBITS | PARITYON | PARITY | CLOCAL | CREAD; newtio.c_iflag = IGNPAR; newtio.c_oflag = 0;

« previous php.cvs (#24794) next »