aboutsummaryrefslogtreecommitdiffhomepage
path: root/proc.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-08-04 15:11:43 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-08-04 15:11:43 -0700
commitc67702a4989c450acd2c9f02fb65aa757f74880f (patch)
treef1def9222481625273521642d68db72c46b866b1 /proc.cpp
parent5880cd88c8e378efb3c76e0cfdff99dce0edf810 (diff)
Cleaned up lots of typecasts, simplified some string handling
Diffstat (limited to 'proc.cpp')
-rw-r--r--proc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/proc.cpp b/proc.cpp
index fc98365d..7de06af5 100644
--- a/proc.cpp
+++ b/proc.cpp
@@ -377,8 +377,8 @@ static void mark_process_status( const job_t *j,
char mess[MESS_SIZE];
snprintf( mess,
MESS_SIZE,
- "Process %d exited abnormally\n",
- (int) p->pid );
+ "Process %ld exited abnormally\n",
+ (long) p->pid );
/*
If write fails, do nothing. We're in a signal handlers error
handler. If things aren't working properly, it's safer to
@@ -866,7 +866,7 @@ static void read_try( job_t *j )
while(1)
{
char b[BUFFER_SIZE];
- int l;
+ long l;
l=read_blocked( buff->param1.pipe_fd[0],
b, BUFFER_SIZE );