Commit 1b024788 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Only use LOCALE if m-config.h says we HAVE_LOCALE.

Changed 1024 -> BUFSIZ.
parent 1170f74c
......@@ -7,10 +7,10 @@
* It has grown! /ceder
*/
static char *rcsid = "$Id: ramkomd.c,v 0.14 1991/08/28 02:20:47 ceder Exp $";
static char *rcsid = "$Id: ramkomd.c,v 0.15 1991/08/30 01:33:51 ceder Exp $";
#include <m-config.h>
#include <getopt.h>
#include <stdlib.h>
#include <signal.h>
......@@ -18,7 +18,9 @@ static char *rcsid = "$Id: ramkomd.c,v 0.14 1991/08/28 02:20:47 ceder Exp $";
#include <ctype.h>
#include <netdb.h>
#include <string.h>
#ifdef HAVE_LOCALE
#include <locale.h>
#endif
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/param.h>
......@@ -53,12 +55,12 @@ Bool never_save = FALSE;
EXPORT char datafilename[1024]; /* Full pathname to the database file */
EXPORT char backupfilename[1024]; /* Full pathname to the backup file */
EXPORT char textfilename[1024]; /* Full pathname to the text file. */
EXPORT char statisticfile[1024]; /* Dito to statistics file. */
EXPORT char pidfile[1024]; /* Dito pid-file. */
INTERNAL char memusefile[1024]; /* Memory usage file. */
EXPORT char datafilename[BUFSIZ]; /* Full pathname to the database file */
EXPORT char backupfilename[BUFSIZ]; /* Full pathname to the backup file */
EXPORT char textfilename[BUFSIZ]; /* Full pathname to the text file. */
EXPORT char statisticfile[BUFSIZ]; /* Dito to statistics file. */
EXPORT char pidfile[BUFSIZ]; /* Dito pid-file. */
INTERNAL char memusefile[BUFSIZ]; /* Memory usage file. */
char ip_client_port[80]; /* Port to listen to for clients */
char ip_mux_port[80]; /* Port to listen to for mux:es */
......@@ -210,11 +212,14 @@ main (int argc,
int i;
FILE *stat_file;
#ifdef HAVE_LOCALE
if (setlocale(LC_CTYPE, "iso_8859_1") == NULL)
{
perror("setlocale");
exit(1);
}
#endif
s_set_storage_management(string_malloc, string_realloc, string_free);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment