[Ocfs2-tools-commits] manish commits r278 - trunk/fsck.ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Wed Sep 29 12:59:26 CDT 2004
Author: manish
Date: 2004-09-29 12:59:24 -0500 (Wed, 29 Sep 2004)
New Revision: 278
Modified:
trunk/fsck.ocfs2/problem.c
Log:
Use int for char c usage, so we can handle EOF right
Modified: trunk/fsck.ocfs2/problem.c
===================================================================
--- trunk/fsck.ocfs2/problem.c 2004-09-29 03:50:26 UTC (rev 277)
+++ trunk/fsck.ocfs2/problem.c 2004-09-29 17:59:24 UTC (rev 278)
@@ -33,9 +33,9 @@
#include "problem.h"
#include "util.h"
-static char read_a_char(int fd)
+static int read_a_char(int fd)
{
- char c;
+ int c;
ssize_t ret;
ret = read(fd, &c, sizeof(c));
@@ -52,7 +52,7 @@
int should_fix(o2fsck_state *ost, unsigned flags, const char *fmt, ...)
{
va_list ap;
- char c;
+ int c;
/* paranoia for jokers that claim to default to both */
if((flags & FIX_DEFYES) && (flags & FIX_DEFNO))
More information about the Ocfs2-tools-commits
mailing list