diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/tacacs-example.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/tacacs-example.c b/examples/tacacs-example.c index a6f5124..5670d2e 100644 --- a/examples/tacacs-example.c +++ b/examples/tacacs-example.c | |||
| @@ -1152,7 +1152,6 @@ my_pckt_send( | |||
| 1152 | tacplus_pckt_t * pckt ) | 1152 | tacplus_pckt_t * pckt ) |
| 1153 | { | 1153 | { |
| 1154 | size_t pckt_len; | 1154 | size_t pckt_len; |
| 1155 | ssize_t rc; | ||
| 1156 | const char * str; | 1155 | const char * str; |
| 1157 | 1156 | ||
| 1158 | my_pckt_hexdump(opts, pckt); | 1157 | my_pckt_hexdump(opts, pckt); |
| @@ -1169,7 +1168,7 @@ my_pckt_send( | |||
| 1169 | my_verbose(opts, "sending %s packet ...", str); | 1168 | my_verbose(opts, "sending %s packet ...", str); |
| 1170 | 1169 | ||
| 1171 | pckt_len = ntohl(pckt->pckt_length) + sizeof(tacplus_pckt_t); | 1170 | pckt_len = ntohl(pckt->pckt_length) + sizeof(tacplus_pckt_t); |
| 1172 | if ((rc = write(s, (void *)pckt, pckt_len)) == -1) | 1171 | if (write(s, (void *)pckt, pckt_len) == -1) |
| 1173 | { | 1172 | { |
| 1174 | my_error("write(): %s", strerror(errno)); | 1173 | my_error("write(): %s", strerror(errno)); |
| 1175 | return(-1); | 1174 | return(-1); |
