summaryrefslogtreecommitdiff
path: root/file_io/unix/readwrite.c
diff options
context:
space:
mode:
authordougm <dougm@13f79535-47bb-0310-9956-ffa450edef68>2000-04-28 06:49:50 +0000
committerdougm <dougm@13f79535-47bb-0310-9956-ffa450edef68>2000-04-28 06:49:50 +0000
commit78c6a1d6c20932585e1cc3ba50f8d0304243b5f1 (patch)
treeb3a50a0c8fafae0f0e35cdf5dd92efa2f86d1a19 /file_io/unix/readwrite.c
parent41d63b37e07421c07743f617e2da0b8292c9e287 (diff)
downloadlibapr-78c6a1d6c20932585e1cc3ba50f8d0304243b5f1.tar.gz
prefix TRUE,FALSE with APR_
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59975 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/unix/readwrite.c')
-rw-r--r--file_io/unix/readwrite.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/file_io/unix/readwrite.c b/file_io/unix/readwrite.c
index 5b0d1d6a6..c47247980 100644
--- a/file_io/unix/readwrite.c
+++ b/file_io/unix/readwrite.c
@@ -121,7 +121,7 @@ ap_status_t ap_read(ap_file_t *thefile, void *buf, ap_ssize_t *nbytes)
if (thefile->bufpos >= thefile->dataRead) {
thefile->dataRead = read(thefile->filedes, thefile->buffer, APR_FILE_BUFSIZE);
if (thefile->dataRead == 0) {
- thefile->eof_hit = TRUE;
+ thefile->eof_hit = APR_TRUE;
break;
}
thefile->filePtr += thefile->dataRead;
@@ -300,7 +300,7 @@ ap_status_t ap_getc(char *ch, ap_file_t *thefile)
}
rv = read(thefile->filedes, ch, 1);
if (rv == 0) {
- thefile->eof_hit = TRUE;
+ thefile->eof_hit = APR_TRUE;
return APR_EOF;
}
else if (rv != 1) {
@@ -347,14 +347,14 @@ ap_status_t ap_flush(ap_file_t *thefile)
ap_status_t ap_fgets(char *str, int len, ap_file_t *thefile)
{
ssize_t rv;
- int i, used_unget = FALSE, beg_idx;
+ int i, used_unget = APR_FALSE, beg_idx;
if(len <= 1) /* as per fgets() */
return APR_SUCCESS;
if(thefile->ungetchar != -1){
str[0] = thefile->ungetchar;
- used_unget = TRUE;
+ used_unget = APR_TRUE;
beg_idx = 1;
if(str[0] == '\n' || str[0] == '\r'){
thefile->ungetchar = -1;
@@ -367,7 +367,7 @@ ap_status_t ap_fgets(char *str, int len, ap_file_t *thefile)
for (i = beg_idx; i < len; i++) {
rv = read(thefile->filedes, &str[i], 1);
if (rv == 0) {
- thefile->eof_hit = TRUE;
+ thefile->eof_hit = APR_TRUE;
if(used_unget) thefile->filedes = -1;
str[i] = '\0';
return APR_EOF;