]> 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 02332c46ccc84c0e7a09aab86ae70fccc2c24ddd..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");
@@ -1114,10 +1117,8 @@ int main(int argc, char *argv[], char *envp[])
         * Show the version to make it easier to determine what
         * is going on here
         */
-       if (debug) {
+       if (debug)
                display_version();
-               fprintf(stderr, "%s", session->group);
-       }
 
        if (session->action == ACTION_UNKNOWN) {
                fprintf(stderr, "Unknown action, valid actions are:\n");
@@ -1137,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);
        }