Closed Hritik14 closed 5 years ago
This is a great start! Thanks for taking a crack at it. It looks like there are a few build errors from this:
} else if ( state.cmd != c ) { ~~~~~~~~~ ^ ~ main.c:255:51: error: implicit conversion changes signedness: 'CURLcode' to 'int' [-Werror,-Wsign-conversion] if ( s->llex || s->lthm || s->lfrm ) { return pb_list(s); } ~~~~~~ ^~~~~~~~~~ main.c:261:26: error: implicit conversion changes signedness: 'CURLcode' to 'int' [-Werror,-Wsign-conversion] case UPD: return pb_paste(s); ~~~~~~ ^~~~~~~~~~~ main.c:262:26: error: implicit conversion changes signedness: 'CURLcode' to 'int' [-Werror,-Wsign-conversion] case SHR: return pb_shorten(s->provider, s->url, s->verb); ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:264:37: error: operand of ? changes signedness: 'CURLcode' to 'int' [-Werror,-Wsign-conversion] : pb_remove(s->provider, uuid, s->verb)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5 errors generated. make: *** [Makefile:36: bin] Error 1
I will poke around with cleaning it up in the next few days :)
Those are not from the current PR. (They're in main.c and this commit doesn't touch this file).
Solved the issue in #93 . Well, actually solving it would require a lot of unnecessary overhead.
This is a great start! Thanks for taking a crack at it. It looks like there are a few build errors from this:
I will poke around with cleaning it up in the next few days :)