Fix typo and remove unused vars
FossilOrigin-Name: f196a46950ce28f6099b4a23bfc91d274e5f744091176e7603c94648616328ae
This commit is contained in:
parent
1cec6bb4b5
commit
56af83d157
2 changed files with 1 additions and 10 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue