Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libsa white space -> tab.



details:   https://anonhg.NetBSD.org/src/rev/27ee280c1bcc
branches:  trunk
changeset: 339493:27ee280c1bcc
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Jul 25 07:06:11 2015 +0000

description:
white space -> tab.

diffstat:

 sys/lib/libsa/bootp.c          |   4 ++--
 sys/lib/libsa/cread.c          |  18 +++++++++---------
 sys/lib/libsa/loadfile_elf32.c |  22 +++++++++++-----------
 3 files changed, 22 insertions(+), 22 deletions(-)

diffs (104 lines):

diff -r f9dcd0e01582 -r 27ee280c1bcc sys/lib/libsa/bootp.c
--- a/sys/lib/libsa/bootp.c     Sat Jul 25 06:58:37 2015 +0000
+++ b/sys/lib/libsa/bootp.c     Sat Jul 25 07:06:11 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bootp.c,v 1.39 2014/03/20 20:42:37 christos Exp $      */
+/*     $NetBSD: bootp.c,v 1.40 2015/07/25 07:06:11 isaki Exp $ */
 
 /*
  * Copyright (c) 1992 Regents of the University of California.
@@ -393,7 +393,7 @@
                        /* let it override bp_siaddr */
                        (void)memcpy(&rootip.s_addr, cp, sizeof(rootip.s_addr));
                }
-               if (tag == TAG_ROOTPATH && size < sizeof(rootpath)) {
+               if (tag == TAG_ROOTPATH && size < sizeof(rootpath)) {
                        strncpy(rootpath, (char *)cp, sizeof(rootpath));
                        rootpath[size] = '\0';
                }
diff -r f9dcd0e01582 -r 27ee280c1bcc sys/lib/libsa/cread.c
--- a/sys/lib/libsa/cread.c     Sat Jul 25 06:58:37 2015 +0000
+++ b/sys/lib/libsa/cread.c     Sat Jul 25 07:06:11 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cread.c,v 1.26 2013/10/13 20:09:02 joerg Exp $ */
+/*     $NetBSD: cread.c,v 1.27 2015/07/25 07:06:11 isaki Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -103,15 +103,15 @@
 
        crc = 0xffffffffU ^ crc;
        for (i = 0; i < len; i++) {
-           c = buf[i];
-           for (j = 0; j < 8; j++) {
-               carry = ((crc & 0x01) ? 1 : 0) ^ (c & 0x01);
-               crc >>= 1;
-               c >>= 1;
-               if (carry) {
-                       crc = (crc ^ ETHER_CRC_POLY_LE);
+               c = buf[i];
+               for (j = 0; j < 8; j++) {
+                       carry = ((crc & 0x01) ? 1 : 0) ^ (c & 0x01);
+                       crc >>= 1;
+                       c >>= 1;
+                       if (carry) {
+                               crc = (crc ^ ETHER_CRC_POLY_LE);
+                       }
                }
-           }
        }
        return (crc ^ 0xffffffffU);
 }
diff -r f9dcd0e01582 -r 27ee280c1bcc sys/lib/libsa/loadfile_elf32.c
--- a/sys/lib/libsa/loadfile_elf32.c    Sat Jul 25 06:58:37 2015 +0000
+++ b/sys/lib/libsa/loadfile_elf32.c    Sat Jul 25 07:06:11 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile_elf32.c,v 1.30 2013/11/27 17:33:03 jakllsch Exp $ */
+/* $NetBSD: loadfile_elf32.c,v 1.31 2015/07/25 07:06:11 isaki Exp $ */
 
 /*-
  * Copyright (c) 1997, 2008 The NetBSD Foundation, Inc.
@@ -457,24 +457,24 @@
                 * table.
                 */
                for (first = 1, i = 0; i < elf->e_shnum; i++) {
-                       if (i == elf->e_shstrndx) {
-                           /* already loaded this section */
-                           continue;
+                       if (i == elf->e_shstrndx) {
+                               /* already loaded this section */
+                               continue;
                        }
                        switch (shp[i].sh_type) {
                        case SHT_PROGBITS:
-                               if (boot_load_ctf && shstr) {
+                               if (boot_load_ctf && shstr) {
                                        /* got a CTF section? */
                                        if (strncmp(".SUNW_ctf",
-                                                   &shstr[shp[i].sh_name],
-                                                   10) == 0) {
-                                               goto havesym;
+                                                   &shstr[shp[i].sh_name],
+                                                   10) == 0) {
+                                               goto havesym;
                                        }
                                }
 
                                /* Not loading this, so zero out the offset. */
                                shp[i].sh_offset = 0;
-                               break;
+                               break;
                        case SHT_STRTAB:
                                for (j = 0; j < elf->e_shnum; j++)
                                        if (shp[j].sh_type == SHT_SYMTAB &&
@@ -535,8 +535,8 @@
                                    ELF_NOTE_TYPE_NETBSD_TAG &&
                                    memcmp(note.name, ELF_NOTE_NETBSD_NAME,
                                    sizeof(note.name)) == 0) {
-                                       memcpy(&netbsd_version, &note.desc,
-                                           sizeof(netbsd_version));
+                                       memcpy(&netbsd_version, &note.desc,
+                                           sizeof(netbsd_version));
                                }
                                shp[i].sh_offset = 0;
                                break;



Home | Main Index | Thread Index | Old Index