diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 03:57:47 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 03:57:47 +0000 |
commit | 4f960dd75f181e9fa2edc44324f15f0ab5c64b37 (patch) | |
tree | 15a9c7203efd47ba6dde2896fdb6327dddd4547f /usr.sbin/vidcontrol/decode.c | |
parent | 30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 (diff) | |
download | FreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.zip FreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'usr.sbin/vidcontrol/decode.c')
-rw-r--r-- | usr.sbin/vidcontrol/decode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/vidcontrol/decode.c b/usr.sbin/vidcontrol/decode.c index 38dd912..d1046c5 100644 --- a/usr.sbin/vidcontrol/decode.c +++ b/usr.sbin/vidcontrol/decode.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: decode.c,v 1.1 1994/08/17 09:00:09 sos Exp $ + * $Id: decode.c,v 1.2 1995/01/28 22:18:02 sos Exp $ */ #include <stdio.h> @@ -39,7 +39,7 @@ int decode(FILE *fd, char *buffer) #define DEC(c) (((c) - ' ') & 0x3f) do { - if (!fgets(temp, sizeof(temp), fd)) + if (!fgets(temp, sizeof(temp), fd)) return(0); } while (strncmp(temp, "begin ", 6)); sscanf(temp, "begin %o %s", &n, temp); @@ -60,7 +60,7 @@ int decode(FILE *fd, char *buffer) DEC(p[0])<<2 | DEC(p[1])>>4; } if (n >= 2) { - buffer[pos++] = + buffer[pos++] = DEC(p[1])<<4 | DEC(p[2])>>2; } if (n >= 3) { |