Permalink
Browse files

Make sure lines fit in 80 columns.

  • Loading branch information...
1 parent c779823 commit 7a49cd570c9ebe807b9d33ddea8bdf238e744004 Keith Rarick committed Jan 3, 2008
Showing with 15 additions and 7 deletions.
  1. +1 −1 net.h
  2. +13 −5 prot.c
  3. +1 −1 util.h
View
2 net.h
@@ -1,6 +1,6 @@
/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
- * This program is free software: you can redistribute it and/or modify and Philotic Inc.
+ * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
View
18 prot.c
@@ -670,7 +670,9 @@ dispatch_cmd(conn c)
break;
case OP_PEEK:
/* don't allow trailing garbage */
- if (c->cmd_len != CMD_PEEK_LEN + 2) return reply_cerr(c, CERR_BAD_FORMAT);
+ if (c->cmd_len != CMD_PEEK_LEN + 2) {
+ return reply_cerr(c, CERR_BAD_FORMAT);
+ }
j = job_copy(peek_buried_job() ? : delay_q_peek());
@@ -696,7 +698,9 @@ dispatch_cmd(conn c)
break;
case OP_RESERVE:
/* don't allow trailing garbage */
- if (c->cmd_len != CMD_RESERVE_LEN + 2) return reply_cerr(c, CERR_BAD_FORMAT);
+ if (c->cmd_len != CMD_RESERVE_LEN + 2) {
+ return reply_cerr(c, CERR_BAD_FORMAT);
+ }
reserve_ct++; /* stats */
conn_set_worker(c);
@@ -764,7 +768,9 @@ dispatch_cmd(conn c)
case OP_KICK:
errno = 0;
count = strtoul(c->cmd + CMD_KICK_LEN, &end_buf, 10);
- if (end_buf == c->cmd + CMD_KICK_LEN) return reply_cerr(c, CERR_BAD_FORMAT);
+ if (end_buf == c->cmd + CMD_KICK_LEN) {
+ return reply_cerr(c, CERR_BAD_FORMAT);
+ }
if (errno) return reply_cerr(c, CERR_BAD_FORMAT);
kick_ct++; /* stats */
@@ -779,7 +785,9 @@ dispatch_cmd(conn c)
break;
case OP_STATS:
/* don't allow trailing garbage */
- if (c->cmd_len != CMD_STATS_LEN + 2) return reply_cerr(c, CERR_BAD_FORMAT);
+ if (c->cmd_len != CMD_STATS_LEN + 2) {
+ return reply_cerr(c, CERR_BAD_FORMAT);
+ }
stats_ct++; /* stats */
@@ -879,7 +887,7 @@ h_conn_data(conn c)
case STATE_WANTDATA:
j = c->in_job;
- r = read(c->fd, j->body + c->in_job_read, j->body_size - c->in_job_read);
+ r = read(c->fd, j->body + c->in_job_read, j->body_size -c->in_job_read);
if (r == -1) return check_err(c, "read()");
if (r == 0) return conn_close(c); /* the client hung up */
View
2 util.h
@@ -1,6 +1,6 @@
/* Copyright (C) 2007 Keith Rarick and Philotic Inc.
- * This program is free software: you can redistribute it and/or modify and Philotic Inc.
+ * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.

0 comments on commit 7a49cd5

Please sign in to comment.