Changeset 5145:c1a3ca765154 in roaraudio for libroar/client.c
- Timestamp:
- 10/11/11 13:47:59 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/client.c
r4948 r5145 39 39 int i; 40 40 41 if ( client == NULL ) 41 if ( client == NULL ) { 42 roar_err_set(ROAR_ERROR_FAULT); 42 43 return -1; 44 } 43 45 44 46 memset(client, 0, sizeof(struct roar_client)); … … 58 60 59 61 int roar_client_set_fh (struct roar_client * client, int fh) { 60 if ( client == NULL ) 62 if ( client == NULL ) { 63 roar_err_set(ROAR_ERROR_FAULT); 61 64 return -1; 65 } 62 66 63 67 client->fh = fh; … … 67 71 68 72 int roar_client_set_proto(struct roar_client * client, int proto, int byteorder) { 69 if ( client == NULL ) 73 if ( client == NULL ) { 74 roar_err_set(ROAR_ERROR_FAULT); 70 75 return -1; 76 } 71 77 72 78 client->proto = proto; … … 80 86 break; 81 87 default: 88 roar_err_set(ROAR_ERROR_INVAL); 82 89 return -1; 83 90 break; … … 93 100 int confh; 94 101 int i; 102 103 if ( con == NULL || client == NULL ) { 104 roar_err_set(ROAR_ERROR_FAULT); 105 return -1; 106 } 95 107 96 108 memset(&m, 0, sizeof(m)); … … 133 145 int i; 134 146 147 if ( con == NULL || client == NULL ) { 148 roar_err_set(ROAR_ERROR_FAULT); 149 return -1; 150 } 151 135 152 memset(&m, 0, sizeof(m)); 136 153
Note: See TracChangeset
for help on using the changeset viewer.