Changeset 086442b7 in rtems


Ignore:
Timestamp:
Dec 2, 2009, 11:00:38 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
b50e48b
Parents:
65c3dca4
Message:

Whitespace removal.

Location:
cpukit/shttpd
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • cpukit/shttpd/cgi.c

    r65c3dca4 r086442b7  
    120120                /* Find where this header ends. Remember where value starts */
    121121                for (p = s, v = NULL; p < e && *p != '\n'; p++)
    122                         if (v == NULL && *p == ':') 
     122                        if (v == NULL && *p == ':')
    123123                                v = p;
    124124
     
    187187
    188188        if (h->ct.v_vec.len > 0)
    189                 addenv(blk, "CONTENT_TYPE=%.*s", 
     189                addenv(blk, "CONTENT_TYPE=%.*s",
    190190                    h->ct.v_vec.len, h->ct.v_vec.ptr);
    191191
  • cpukit/shttpd/compat_unix.c

    r65c3dca4 r086442b7  
    1111#include "defs.h"
    1212
    13 void 
     13void
    1414set_close_on_exec(int fd)
    1515{
  • cpukit/shttpd/compat_win32.c

    r65c3dca4 r086442b7  
    509509        if (hIcon == NULL)
    510510                hIcon = LoadIcon(NULL, IDI_APPLICATION);
    511         cls.lpfnWndProc = (WNDPROC) WindowProc; 
     511        cls.lpfnWndProc = (WNDPROC) WindowProc;
    512512        cls.hIcon = hIcon;
    513         cls.lpszClassName = "shttpd v." VERSION; 
    514 
    515         if (!RegisterClass(&cls)) 
     513        cls.lpszClassName = "shttpd v." VERSION;
     514
     515        if (!RegisterClass(&cls))
    516516                elog(E_FATAL, NULL, "RegisterClass: %d", ERRNO);
    517517        else if ((hWnd = CreateWindow(cls.lpszClassName, "",WS_OVERLAPPEDWINDOW,
     
    519519                elog(E_FATAL, NULL, "CreateWindow: %d", ERRNO);
    520520
    521         while (GetMessage(&msg, (HWND) NULL, 0, 0)) { 
    522                 TranslateMessage(&msg); 
    523                 DispatchMessage(&msg); 
     521        while (GetMessage(&msg, (HWND) NULL, 0, 0)) {
     522                TranslateMessage(&msg);
     523                DispatchMessage(&msg);
    524524        }
    525525
     
    535535                        *path = '\\';
    536536                if (*path == '\\')
    537                         while (path[1] == '\\' || path[1] == '/') 
     537                        while (path[1] == '\\' || path[1] == '/')
    538538                                (void) memmove(path + 1,
    539539                                    path + 2, strlen(path + 2) + 1);
     
    716716        }
    717717
    718         if (result == -1) 
     718        if (result == -1)
    719719                errno = EBADF;
    720720
  • cpukit/shttpd/compat_wince.c

    r65c3dca4 r086442b7  
    861861but for other years, there may a negative sign or more digits.  In
    862862this way, `<<%C%y>>' is equivalent to `<<%Y>>'. [tm_year]
    863  
     863
    864864o %d
    865865The day of the month, formatted with two digits (from `<<01>>' to
     
    893893week of the previous year; and if December 29th, 30th, or 31st falls
    894894on Monday, that day and later belong to week 1 of the next year.  For
    895 consistency with %Y, it always has at least four characters. 
     895consistency with %Y, it always has at least four characters.
    896896Example: "%G" for Saturday 2nd January 1999 gives "1998", and for
    897897Tuesday 30th December 1997 gives "1998". [tm_year, tm_wday, tm_yday]
  • cpukit/shttpd/compat_wince.h

    r65c3dca4 r086442b7  
    9898#define S_IFREG  0100000
    9999#define S_IEXEC  0000100
    100 #define S_IWRITE 0000200 
     100#define S_IWRITE 0000200
    101101#define S_IREAD  0000400
    102102
  • cpukit/shttpd/config.c

    r65c3dca4 r086442b7  
    210210
    211211                        if ((opt = find_option(0, var)) == NULL)
    212                                 elog(E_FATAL, NULL, 
     212                                elog(E_FATAL, NULL,
    213213                                    "set_option: unknown variable [%s]", var);
    214214                        set_option(opt, val, tmpvars);
  • cpukit/shttpd/log.c

    r65c3dca4 r086442b7  
    6363
    6464/*
    65  * HACK: m68k-gcc <= 4.2.1 ICEs on the snprintf below for some 
     65 * HACK: m68k-gcc <= 4.2.1 ICEs on the snprintf below for some
    6666 * coldfire variants for yet unknown reasons.
    6767 * C.f.: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32307
    68  
     68
    6969 * T.S, 2008/3/25 -- 4.2.3 still has this problem
    7070 */
     
    7373     ( (__GNUC__ == 4 ) && (__GNUC_MINOR__ < 2 ) ) || \
    7474       ( (__GNUC__ == 4 ) && (__GNUC_MINOR__ == 2 ) && (__GNUC_PATCHLEVEL__ <= 3 ) ) )
    75 #if defined(__mcoldfire__) 
     75#if defined(__mcoldfire__)
    7676#define SPLIT_SNPRINTF 1
    7777#endif /* __mcoldfire__ */
  • cpukit/shttpd/md5.c

    r65c3dca4 r086442b7  
    202202
    203203/*
    204  * Final wrapup - pad to 64-byte boundary with the bit pattern 
     204 * Final wrapup - pad to 64-byte boundary with the bit pattern
    205205 * 1 0* (64-bit count of bits processed, MSB-first)
    206206 */
  • cpukit/shttpd/shttpd.c

    r65c3dca4 r086442b7  
    136136
    137137        DBG(("%d %s stopped. %lu of content data, %d now in a buffer",
    138             stream->conn->rem.chan.sock, 
     138            stream->conn->rem.chan.sock,
    139139            stream->io_class ? stream->io_class->name : "(null)",
    140140            (unsigned long) stream->io.total, io_data_len(&stream->io)));
     
    10311031                if (io_space_len(&c->loc.io) &&
    10321032                    ((c->loc.flags & FLAG_ALWAYS_READY)
    1033                    
     1033               
    10341034#if !defined(NO_CGI)
    10351035                    ||(c->loc.io_class == &io_cgi &&
     
    10441044
    10451045                if (io_data_len(&c->loc.io) > 0 && c->rem.io_class != NULL)
    1046                         write_stream(&c->loc, &c->rem); 
     1046                        write_stream(&c->loc, &c->rem);
    10471047
    10481048                if (c->rem.nread_last > 0)
Note: See TracChangeset for help on using the changeset viewer.