1
1

Fix a compiler warning and ensure that "sent" is initialized to 0.

This commit was SVN r20756.
Этот коммит содержится в:
Jeff Squyres 2009-03-09 15:37:04 +00:00
родитель 8b5e6c0425
Коммит 4e53885f73

Просмотреть файл

@ -186,7 +186,7 @@ static void tweet(char *msg)
auth_basic(),
version_string(),
mca_notifier_twitter_component.server,
strlen(msg) + strlen("status="),
(int) (strlen(msg) + strlen("status=")),
msg);
/* Get a socket */
@ -216,7 +216,7 @@ static void tweet(char *msg)
}
/* Send HTTP update */
for (len = strlen(str); sent < len; ) {
for (sent = 0, len = strlen(str); sent < len; ) {
ret = write(fd, str, strlen(str));
if (ret > 0) {
str += ret;