Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/stand/pbsdboot more CR/NL -> NL conversion ...



details:   https://anonhg.NetBSD.org/src/rev/026ca27d21b5
branches:  trunk
changeset: 481744:026ca27d21b5
user:      cgd <cgd%NetBSD.org@localhost>
date:      Sat Feb 05 03:25:26 2000 +0000

description:
more CR/NL -> NL conversion (some crept in)

diffstat:

 sys/arch/hpcmips/stand/pbsdboot/main.c |  52 +++++++++++++++++-----------------
 1 files changed, 26 insertions(+), 26 deletions(-)

diffs (73 lines):

diff -r b9e86fc73c75 -r 026ca27d21b5 sys/arch/hpcmips/stand/pbsdboot/main.c
--- a/sys/arch/hpcmips/stand/pbsdboot/main.c    Sat Feb 05 00:13:22 2000 +0000
+++ b/sys/arch/hpcmips/stand/pbsdboot/main.c    Sat Feb 05 03:25:26 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.25 2000/01/31 12:45:29 takemura Exp $       */
+/*     $NetBSD: main.c,v 1.26 2000/02/05 03:25:26 cgd Exp $    */
 
 /*-
  * Copyright (c) 1999 Shin Takemura.
@@ -258,7 +258,7 @@
 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
 void SetBootInfo(struct bootinfo *bi, struct fb_setting *fbs);
 void wstrcpy(TCHAR* dst, TCHAR* src);
-int reverse_fb_type(int type);
+int reverse_fb_type(int type);
 
 /*-----------------------------------------------------------------------------
 
@@ -271,30 +271,30 @@
                *dst++ = *src++;
        }
        *dst = *src;
-}
-
-int reverse_fb_type(int type)
-{
-       int i;
-       struct {
-               int type0, type1;
-       } types[] = {
-               { BIFB_D2_M2L_3,        BIFB_D2_M2L_0   },
-               { BIFB_D2_M2L_3x2,      BIFB_D2_M2L_0x2 },
-               { BIFB_D8_FF,           BIFB_D8_00              },
-               { BIFB_D16_FFFF,        BIFB_D16_0000,  },
-       };
-
-       for (i = 0; i < ARRAYSIZEOF(types); i++) {
-               if (types[i].type0 == type) {
-                       return (types[i].type1);
-               }
-               if (types[i].type1 == type) {
-                       return (types[i].type0);
-               }
-       }
-       debug_printf(TEXT("reverse_fb_type(): unknown type %d\n"), type);
-       return (type);
+}
+
+int reverse_fb_type(int type)
+{
+       int i;
+       struct {
+               int type0, type1;
+       } types[] = {
+               { BIFB_D2_M2L_3,        BIFB_D2_M2L_0   },
+               { BIFB_D2_M2L_3x2,      BIFB_D2_M2L_0x2 },
+               { BIFB_D8_FF,           BIFB_D8_00              },
+               { BIFB_D16_FFFF,        BIFB_D16_0000,  },
+       };
+
+       for (i = 0; i < ARRAYSIZEOF(types); i++) {
+               if (types[i].type0 == type) {
+                       return (types[i].type1);
+               }
+               if (types[i].type1 == type) {
+                       return (types[i].type0);
+               }
+       }
+       debug_printf(TEXT("reverse_fb_type(): unknown type %d\n"), type);
+       return (type);
 }
 
 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,



Home | Main Index | Thread Index | Old Index