]> ToastFreeware Gitweb - gregoa/bti.git/blobdiff - bti.c
Removing explicit mentions of twitter
[gregoa/bti.git] / bti.c
diff --git a/bti.c b/bti.c
index a9a6d435bd89a2e7ee34397cf503953d933dd34b..2c2f4bee5f490688418e4962e4398452d8971bd1 100644 (file)
--- a/bti.c
+++ b/bti.c
@@ -338,6 +338,9 @@ static int send_request(struct session *session)
        if (!curl)
                return -EINVAL;
 
+       if (!session->hosturl)
+               session->hosturl = strdup(twitter_host);
+
        switch (session->action) {
        case ACTION_UPDATE:
                snprintf(user_password, sizeof(user_password), "%s:%s",
@@ -668,7 +671,7 @@ void read_password(char *buf, size_t len)
        tp.c_lflag &= (~ECHO);
        tcsetattr(0, TCSANOW, &tp);
 
-       fprintf(stdout, "Enter twitter password: ");
+       fprintf(stdout, "Enter password: ");
        fflush(stdout);
        scanf("%79s", pwd);
        fprintf(stdout, "\n");
@@ -1135,7 +1138,7 @@ int main(int argc, char *argv[], char *envp[])
        }
 
        if (!session->account) {
-               fprintf(stdout, "Enter twitter account: ");
+               fprintf(stdout, "Enter account: ");
                session->account = readline(NULL);
        }