Changeset 1344:e3826c0d1c80 in roaraudio
- Timestamp:
- 03/23/09 16:07:24 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarcatvio.c
r1292 r1344 51 51 int i; 52 52 char * name = "roarcat"; 53 struct roar_vio_calls file, stream, pgp; 53 struct roar_vio_calls file, stream; 54 struct roar_vio_defaults def; 54 55 int file_opened = 0; 55 56 56 57 if ( roar_vio_open_fh(&file, ROAR_STDIN) == -1 ) 58 return 1; 59 60 if ( roar_vio_dstr_init_defaults(&def, ROAR_VIO_DEF_TYPE_NONE, O_RDONLY, 0644) == -1 ) 57 61 return 1; 58 62 … … 81 85 } else if ( !file_opened ) { 82 86 file_opened = 1; 83 if ( roar_vio_open_ file(&file, k, O_RDONLY, 0644) == -1 ) {87 if ( roar_vio_open_dstr(&file, k, &def, 1) == -1 ) { 84 88 fprintf(stderr, "Error: can not open file: %s: %s\n", k, strerror(errno)); 85 89 return 1; … … 97 101 } 98 102 99 roar_vio_ open_pgp_decrypt(&pgp, &file, NULL);103 roar_vio_copy_data(&stream, &file); 100 104 101 roar_vio_copy_data(&stream, &pgp); 102 103 roar_vio_close(&pgp); 105 roar_vio_close(&file); 104 106 roar_vio_close(&stream); 105 107
Note: See TracChangeset
for help on using the changeset viewer.