Remove declaration that should have been removed in rev. 1.9. Doc

fix.  register purge.
This commit is contained in:
Markus Armbruster 2006-04-30 13:20:48 +00:00
parent 470cd37056
commit cee8e126a2

View file

@ -40,7 +40,7 @@
#include <config.h> #include <config.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> /* malloc free */ #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
#if !defined(_WIN32) #if !defined(_WIN32)
#include <sys/uio.h> #include <sys/uio.h>
@ -49,19 +49,13 @@
#include "queue.h" #include "queue.h"
#include "ioqueue.h" #include "ioqueue.h"
static int ioqtocbuf(struct ioqueue *ioq, char *buf, int cc, static int ioqtocbuf(struct ioqueue *ioq, char *buf, int cc, int stopc);
register int stopc);
#if !defined(_WIN32) #if !defined(_WIN32)
static int ioqtoiov(struct ioqueue *ioq, struct iovec *iov, static int ioqtoiov(struct ioqueue *ioq, struct iovec *iov, int max);
register int max);
#endif #endif
static int ioqtobuf(struct ioqueue *ioq, char *buf, int cc); static int ioqtobuf(struct ioqueue *ioq, char *buf, int cc);
static int appendcc(struct ioqueue *ioq, char *buf, int cc); static int appendcc(struct ioqueue *ioq, char *buf, int cc);
static int removecc(struct ioqueue *ioq, register int cc); static int removecc(struct ioqueue *ioq, int cc);
#if defined(_WIN32)
static void loc_StripDels(char *pBuf);
#endif
struct ioqueue * struct ioqueue *
ioq_create(int size) ioq_create(int size)
@ -178,11 +172,6 @@ ioq_puts(struct ioqueue *ioq, char *buf)
return appendcc(ioq, buf, strlen(buf)); return appendcc(ioq, buf, strlen(buf));
} }
/*
* all the rest are local to this module
*/
/* /*
* copy cc bytes from ioq to buf. * copy cc bytes from ioq to buf.
* this routine doesn't free memory; this is * this routine doesn't free memory; this is
@ -194,8 +183,7 @@ ioqtobuf(struct ioqueue *ioq, char *buf, int cc)
struct io *io; struct io *io;
struct emp_qelem *qp; struct emp_qelem *qp;
struct emp_qelem *head; struct emp_qelem *head;
register int nbytes; int nbytes, nleft;
register int nleft;
char *offset; char *offset;
nleft = cc; nleft = cc;
@ -223,7 +211,7 @@ ioqtobuf(struct ioqueue *ioq, char *buf, int cc)
* terminating on the stop character. * terminating on the stop character.
*/ */
static int static int
ioqtocbuf(struct ioqueue *ioq, char *buf, int cc, register int stopc) ioqtocbuf(struct ioqueue *ioq, char *buf, int cc, int stopc)
{ {
int nbytes; int nbytes;
char *p; char *p;
@ -261,12 +249,10 @@ ioqtocbuf(struct ioqueue *ioq, char *buf, int cc, register int stopc)
*/ */
#if !defined(_WIN32) #if !defined(_WIN32)
static int static int
ioqtoiov(struct ioqueue *ioq, struct iovec *iov, register int max) ioqtoiov(struct ioqueue *ioq, struct iovec *iov, int max)
{ {
struct io *io; struct io *io;
register int cc; int cc, niov, len;
register int niov;
register int len;
struct emp_qelem *qp; struct emp_qelem *qp;
cc = max; cc = max;
@ -334,13 +320,11 @@ appendcc(struct ioqueue *ioq, char *buf, int cc)
* which are no longer used. * which are no longer used.
*/ */
static int static int
removecc(struct ioqueue *ioq, register int cc) removecc(struct ioqueue *ioq, int cc)
{ {
struct io *io; struct io *io;
struct emp_qelem *qp; struct emp_qelem *qp;
register int nbytes; int nbytes, there, remain;
register int there;
register int remain;
nbytes = 0; nbytes = 0;
remain = cc; remain = cc;