summaryrefslogtreecommitdiffstats
path: root/c/src/libnetworking/rtems_webserver/rom.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/libnetworking/rtems_webserver/rom.c')
-rw-r--r--c/src/libnetworking/rtems_webserver/rom.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/c/src/libnetworking/rtems_webserver/rom.c b/c/src/libnetworking/rtems_webserver/rom.c
index 4e6c8f1e93..6bb8a8da99 100644
--- a/c/src/libnetworking/rtems_webserver/rom.c
+++ b/c/src/libnetworking/rtems_webserver/rom.c
@@ -1,7 +1,7 @@
/*
* rom.c -- Support for ROMed page retrieval.
*
- * Copyright (c) Go Ahead Software Inc., 1995-1999. All Rights Reserved.
+ * Copyright (c) GoAhead Software Inc., 1995-2000. All Rights Reserved.
*
* See the file "license.txt" for usage and redistribution license requirements
*/
@@ -20,13 +20,6 @@
#include <stdlib.h>
-#if CE
-#define EINVAL 22
-#define EBADF 9
-#else
-#include <errno.h>
-#endif
-
#include "wsIntrn.h"
/******************************** Local Data **********************************/
@@ -46,7 +39,7 @@ int websRomOpen()
int nchars;
char_t name[SYM_MAX];
- romTab = symOpen(64);
+ romTab = symOpen(WEBS_SYM_INIT);
for (wip = websRomPageIndex; wip->path; wip++) {
gstrncpy(name, wip->path, SYM_MAX);
@@ -67,7 +60,7 @@ int websRomOpen()
void websRomClose()
{
- symClose(romTab, NULL);
+ symClose(romTab);
}
/******************************************************************************/
@@ -105,7 +98,7 @@ void websRomPageClose(int fd)
* Stat a web page
*/
-int websRomPageStat(char_t *path, websStatType* sbuf)
+int websRomPageStat(char_t *path, websStatType *sbuf)
{
websRomPageIndexType *wip;
sym_t *sp;
@@ -193,6 +186,6 @@ long websRomPageSeek(webs_t wp, long offset, int origin)
return (wip->pos = pos);
}
-#endif
+#endif /* WEBS_PAGE_ROM */
/******************************************************************************/