OpenBSD compile fixes
This commit is contained in:
parent
ce0c2f2041
commit
f3bf83f0b9
@ -371,7 +371,9 @@ int main(int argc, char **argv)
|
|||||||
Syslog('b', "setlocale(LANG, NULL) returns \"%s\"", printable(setlocale(LANG, NULL), 0));
|
Syslog('b', "setlocale(LANG, NULL) returns \"%s\"", printable(setlocale(LANG, NULL), 0));
|
||||||
Syslog('b', "setlocale(LC_CTYPE, NULL) returns \"%s\"", printable(setlocale(LC_CTYPE, NULL), 0));
|
Syslog('b', "setlocale(LC_CTYPE, NULL) returns \"%s\"", printable(setlocale(LC_CTYPE, NULL), 0));
|
||||||
Syslog('b', "setlocale(LC_ALL, NULL) returns \"%s\"", printable(setlocale(LC_ALL, NULL), 0));
|
Syslog('b', "setlocale(LC_ALL, NULL) returns \"%s\"", printable(setlocale(LC_ALL, NULL), 0));
|
||||||
|
#ifndef __OpenBSD__
|
||||||
Syslog('b', "nl_langinfo(CODESET) returns \"%s\"", nl_langinfo(CODESET));
|
Syslog('b', "nl_langinfo(CODESET) returns \"%s\"", nl_langinfo(CODESET));
|
||||||
|
#endif
|
||||||
|
|
||||||
snprintf(sMailbox, 21, "mailbox");
|
snprintf(sMailbox, 21, "mailbox");
|
||||||
colour(LIGHTGRAY, BLACK);
|
colour(LIGHTGRAY, BLACK);
|
||||||
|
@ -117,7 +117,7 @@ void poutCR(int fg, int bg, char *Str)
|
|||||||
char *colour_str(int fg, int bg)
|
char *colour_str(int fg, int bg)
|
||||||
{
|
{
|
||||||
static char temp[61];
|
static char temp[61];
|
||||||
char tmp1[40];
|
char tmp1[41];
|
||||||
|
|
||||||
int att = 0, fore = 37, back = 40;
|
int att = 0, fore = 37, back = 40;
|
||||||
|
|
||||||
@ -156,7 +156,7 @@ char *colour_str(int fg, int bg)
|
|||||||
else if (bg == LIGHTGRAY) back=47;
|
else if (bg == LIGHTGRAY) back=47;
|
||||||
else back=40;
|
else back=40;
|
||||||
|
|
||||||
snprintf(tmp1, 41, "%d;%d;%dm", att, fore, back);
|
snprintf(tmp1, 40, "%d;%d;%dm", att, fore, back);
|
||||||
strncat(temp, tmp1, 60);
|
strncat(temp, tmp1, 60);
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
@ -209,7 +209,7 @@ char *clear_str(void)
|
|||||||
|
|
||||||
strncpy(temp, colour_str(LIGHTGRAY, BLACK), 40);
|
strncpy(temp, colour_str(LIGHTGRAY, BLACK), 40);
|
||||||
strncat(temp, (char *)ANSI_HOME, 40);
|
strncat(temp, (char *)ANSI_HOME, 40);
|
||||||
strncat(temp, (char *)ANSI_CLEAR, 50);
|
strncat(temp, (char *)ANSI_CLEAR, 40);
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user