From a6b4c0df5f74d1238337f41d1d13f4f168ad01f1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 1 Sep 2000 10:57:21 +0000 Subject: 2000-08-30 Joel Sherrill * Merged version 2.1 of GoAhead webserver. This update was submitted by Antti P Miettinen . * NOTES, base64.c, ejIntrn.h, emfdb.c, emfdb.h, md5.h, md5c.c, um.c, um.h: New files. * wbase64.c: Removed. * Makefile.am, asp.c, balloc.c, default.c, ej.h, ejlex.c, ejparse.c, form.c, h.c, handler.c, mime.c, misc.c, ringq.c, rom.c, security.c, socket.c, sym.c, uemf.c, uemf.h, url.c, value.c, webcomp.c, webmain.c, webpage.c, webrom.c, webs.c, webs.h, websuemf.c, wsIntrn.h: Modified. --- cpukit/httpd/rom.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'cpukit/httpd/rom.c') diff --git a/cpukit/httpd/rom.c b/cpukit/httpd/rom.c index 4e6c8f1e93..6bb8a8da99 100644 --- a/cpukit/httpd/rom.c +++ b/cpukit/httpd/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 -#if CE -#define EINVAL 22 -#define EBADF 9 -#else -#include -#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 */ /******************************************************************************/ -- cgit v1.2.3