diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-01-23 13:40:01 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-01-23 13:40:01 +0000 |
commit | 528c8b904a1da81934ac8d8d7dcbf97f220a7228 (patch) | |
tree | 468f888febe181f3f8dc28ecbd29495595994ed4 /ax25/axgetput/util.c | |
parent | 5b1b6bc87963c9f361dbfcde7a8323e5a417053b (diff) |
Fix warnings about // style comment. And remove some of the most
pointless comments.
Diffstat (limited to 'ax25/axgetput/util.c')
-rw-r--r-- | ax25/axgetput/util.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ax25/axgetput/util.c b/ax25/axgetput/util.c index 160647f..b1d4cd3 100644 --- a/ax25/axgetput/util.c +++ b/ax25/axgetput/util.c @@ -1,4 +1,4 @@ -/* @(#) $Id: util.c,v 1.1 2006/12/10 19:12:59 dl9sau Exp $ */ +/* @(#) $Id: util.c,v 1.2 2007/01/23 13:40:01 ralf Exp $ */ /* * (c) 2002 Thomas Osterried DL9SAU <thomas@x-berg.in-berlin.de> @@ -60,13 +60,15 @@ int my_read(int fd, char *s, int len_max, int *eof, char *p_break) continue; } *eof = 1; - // len = 0: normal eof. if we're looking for a string, return -1 since - // we have'nt found + /* + * len = 0: normal eof. if we're looking for a string, return -1 since + * we have'nt found + */ return (len == 0 && p_break ? -1 : (len_got ? len_got : len)); } len_got += len; - // read once? or char in p_break found? + /* read once? or char in p_break found? */ if (!p_break || strchr(p_break, *s_curr)) break; } @@ -95,7 +97,7 @@ int secure_write(int fd, char *s, int len_write) { return -1; } if (len != len_write_left_curr) { - // queue busy.. + /* queue busy.. */ sleep(10); } s += len; |