diff --git a/src/path.c b/src/path.c index aef0f53..5574883 100644 --- a/src/path.c +++ b/src/path.c @@ -23,25 +23,16 @@ #include "account.h" #include "error.h" -enum path_state -{ - PARSE_NEUTRAL, - PARSE_READ, -}; - int parse_path(struct session* ssn, mastodont_t* api, struct path_info* path_info) { int res = 0; int fail = 0, fin = 0; - enum path_state state = PARSE_NEUTRAL; char* p = path_info->path + 1; char* p2 = getenv("PATH_INFO") + 1; - size_t p2_len = strlen(getenv("PATH_INFO")) - 1; // Stored into data - int str_size = 0; char* tmp = NULL; char** data = NULL; size_t size = 0; diff --git a/src/status.c b/src/status.c index eb1674b..0ef6a4f 100644 --- a/src/status.c +++ b/src/status.c @@ -745,7 +745,7 @@ char* construct_status(struct session* ssn, delete_status = tmpl_gen_menu_item(&mdata, NULL); mdata.itype = status->pinned ? "unpin" : "pin"; - mdata.text = status->pinned ? "Pin status" : "Unpin status"; + mdata.text = status->pinned ? "Unpin status" : "Pin status"; pin_status = tmpl_gen_menu_item(&mdata, NULL); }