summaryrefslogtreecommitdiff
path: root/lib/libFS/src/FSErrDis.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-08-23 14:00:12 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-08-23 14:00:12 +0000
commit09cd387c51d91ee81c5e4bcbc4aa4acfe6ff2016 (patch)
tree51371c6daedb8e02d642bf1f194a333654a74a40 /lib/libFS/src/FSErrDis.c
parent220eede46b02682575dffd6bebab8a27e0a77bdc (diff)
update to libFS 1.0.2
Diffstat (limited to 'lib/libFS/src/FSErrDis.c')
-rw-r--r--lib/libFS/src/FSErrDis.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/libFS/src/FSErrDis.c b/lib/libFS/src/FSErrDis.c
index 244e0a4d7..f89e49f99 100644
--- a/lib/libFS/src/FSErrDis.c
+++ b/lib/libFS/src/FSErrDis.c
@@ -1,6 +1,4 @@
-/* $Xorg: FSErrDis.c,v 1.4 2001/02/09 02:03:25 xorgcvs Exp $ */
-
-/* @(#)FSErrDis.c 4.1 91/05/02
+/*
* Copyright 1990 Network Computing Devices;
* Portions Copyright 1987 by Digital Equipment Corporation
*
@@ -58,7 +56,7 @@ in this Software without prior written authorization from The Open Group.
#include "FSlibint.h"
#include <X11/Xos.h>
-char *FSErrorList[] = {
+static const char *FSErrorList[] = {
/* FSBadRequest */ "BadRequest, invalid request code or no such operation",
/* FSBadFormat */ "BadFormat, bad font format mask",
/* FSBadFont */ "BadFont, invalid Font parameter",
@@ -72,21 +70,21 @@ char *FSErrorList[] = {
/* FSBadLength */ "BadLength, request too large or internal FSlib length error",
/* FSBadImplementation */ "BadImplementation, request unsupported",
};
-int FSErrorListSize = sizeof(FSErrorList);
+static int FSErrorListSize = sizeof(FSErrorList);
/* ARGSUSED */
int FSGetErrorDatabaseText(
FSServer *svr,
- register char *name,
- register char *type,
- char *defaultp,
+ const char *name,
+ const char *type,
+ const char *defaultp,
char *buffer,
int nbytes)
{
if (nbytes == 0)
return 0;
- (void) strncpy(buffer, (char *) defaultp, nbytes);
+ (void) strncpy(buffer, defaultp, nbytes);
if ((strlen(defaultp) + 1) > nbytes)
buffer[nbytes - 1] = '\0';
return 1;
@@ -99,7 +97,7 @@ int FSGetErrorText(
int nbytes)
{
- char *defaultp = NULL;
+ const char *defaultp = NULL;
char buf[32];
register _FSExtension *ext;