run-time relocations.
char hbuf[NI_MAXHOST];
struct sockaddr *sa=(struct sockaddr *)&ss;
char tmp[1024];
- static const char * const mode[] = { "EPRT", "PORT", NULL };
+ static const char mode[][5] = { "EPRT", "PORT" };
int rc;
int error;
char *host=NULL;
*/
- static const char * const mode[] = { "EPSV", "PASV", NULL };
+ static const char mode[][5] = { "EPSV", "PASV" };
int modeoff;
#ifdef PF_INET6
struct SessionHandle *data=conn->data;
int ftpcode;
struct ftp_conn *ftpc = &conn->proto.ftpc;
- static const char * const ftpauth[] = {
- "SSL", "TLS"
- };
+ static const char ftpauth[][4] = { "SSL", "TLS" };
size_t nread = 0;
if(ftpc->sendleft) {
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
struct tzinfo {
- const char *name;
+ char name[5];
int offset; /* +/- in minutes */
};
static int showit(struct SessionHandle *data, curl_infotype type,
char *ptr, size_t size)
{
- static const char * const s_infotype[CURLINFO_END] = {
+ static const char s_infotype[CURLINFO_END][3] = {
"* ", "< ", "> ", "{ ", "} ", "{ ", "} " };
#ifdef CURL_DOES_CONVERSIONS
const char *cp = *cpp, *end;
char quot;
unsigned int i, j;
- static const char * const WHITESPACE = " \t\r\n";
+ static const char WHITESPACE[] = " \t\r\n";
cp += strspn(cp, WHITESPACE);
if(!*cp) {