Changeset 1660:99bfd21f00ef in roaraudio for libroar/basic.c
- Timestamp:
- 05/08/09 16:56:40 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/basic.c
r1475 r1660 187 187 memset(con, 0, sizeof(struct roar_connection)); 188 188 189 con-> fh = fh;189 con->__fh = fh; 190 190 191 191 roar_errno = ROAR_ERROR_NONE; 192 192 return 0; 193 } 194 195 int roar_get_connection_fh (struct roar_connection * con) { 196 return con->__fh; 193 197 } 194 198 … … 204 208 205 209 #ifdef ROAR_HAVE_IO_POSIX 206 close( con->fh);207 #endif 208 209 con->fh = -1;210 close(roar_get_connection_fh(con)); 211 #endif 212 213 roar_connect_fh(con, -2); 210 214 211 215 roar_errno = ROAR_ERROR_NONE; … … 256 260 struct roar_vio_calls vio; 257 261 258 if ( roar_vio_open_fh_socket(&vio, con->fh) == -1 )262 if ( roar_vio_open_fh_socket(&vio, roar_get_connection_fh(con)) == -1 ) 259 263 return -1; 260 264 … … 298 302 struct roar_vio_calls vio; 299 303 300 if ( roar_vio_open_fh_socket(&vio, con->fh) == -1 )304 if ( roar_vio_open_fh_socket(&vio, roar_get_connection_fh(con)) == -1 ) 301 305 return -1; 302 306 … … 385 389 struct roar_vio_calls vio; 386 390 387 if ( roar_vio_open_fh_socket(&vio, con->fh) == -1 )391 if ( roar_vio_open_fh_socket(&vio, roar_get_connection_fh(con)) == -1 ) 388 392 return -1; 389 393
Note: See TracChangeset
for help on using the changeset viewer.