treewide: strip trailing whitespace
Strip trailing whitespace in all code: find . -type f | grep "\.c$" | xargs sed -i 's/[ \t]\+$//' find . -type f | grep "\.h$" | xargs sed -i 's/[ \t]\+$//' find . -type f | grep "\.dts$" | xargs sed -i 's/[ \t]\+$//' find . -type f | grep "\.dtsi$" | xargs sed -i 's/[ \t]\+$//' Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/18626 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
committed by
Robert Marko
parent
6b43a52171
commit
a238170e57
@@ -2,7 +2,7 @@
|
||||
* fbtest - fbtest.c
|
||||
* test program for the tuxbox-framebuffer device
|
||||
* tests all GTX/eNX supported modes
|
||||
*
|
||||
*
|
||||
* (c) 2003 Carsten Juttner (carjay@gmx.net)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -18,7 +18,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
*
|
||||
******************************************************************************
|
||||
* $Id: fbtest.c,v 1.5 2005/01/14 23:14:41 carjay Exp $
|
||||
******************************************************************************/
|
||||
@@ -187,12 +187,12 @@ int setmode(int fbd, const struct pixelformat *pixf,const struct vidsize *vids){
|
||||
int stat;
|
||||
stat = ioctl (fbd, FBIOGET_VSCREENINFO,&var);
|
||||
if (stat<0) return -2;
|
||||
|
||||
|
||||
var.xres= vids->width;
|
||||
var.xres_virtual = vids->width;
|
||||
var.yres= vids->height;
|
||||
var.yres_virtual = vids->height;
|
||||
|
||||
|
||||
var.bits_per_pixel = pixf->bpp;
|
||||
var.red = pixf->red;
|
||||
var.green = pixf->green;
|
||||
@@ -254,7 +254,7 @@ void drawrect(void *videoram, struct rect *r, const struct pixelformat *pixf, co
|
||||
pmem +=((vids->width*bpp)>>3); // skip one whole line, actually should be taken from "fix-info"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// create quick little test image, 4 colours from table
|
||||
void draw4field(void *videoram, const struct pixelformat *pixf, const struct vidsize *vids){
|
||||
struct rect r;
|
||||
@@ -314,7 +314,7 @@ int main (int argc,char **argv){
|
||||
int optchar,fmode=-1,smode=-1,clear=1;
|
||||
int i_cmap,i_size,i_pix;
|
||||
extern char *optarg;
|
||||
|
||||
|
||||
if (argc!=0&&argc>4) usage(argv[0]);
|
||||
while ( (optchar = getopt (argc,argv,"f:s:n"))!= -1){
|
||||
int i,height,width;
|
||||
@@ -359,7 +359,7 @@ int main (int argc,char **argv){
|
||||
usage (argv[0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fbd = open (FBDEV, O_RDWR);
|
||||
if (fbd<0){
|
||||
perror ("Error opening framebuffer device");
|
||||
@@ -396,7 +396,7 @@ int main (int argc,char **argv){
|
||||
printf ("%dx%d ",vidsizetable[i_size].width,vidsizetable[i_size].height);
|
||||
fflush(stdout);
|
||||
if ((i_size%4)==3) printf ("\n");
|
||||
|
||||
|
||||
// try to set mode
|
||||
stat = setmode(fbd,&pixelformattable[i_pix],&vidsizetable[i_size]);
|
||||
if (stat==-2) perror ("fbtest: could not get fb_var-screeninfo from fb-device");
|
||||
|
||||
@@ -68,10 +68,10 @@ static void buffer_reverse(unsigned char *data, unsigned int top)
|
||||
* or Z_OK if data was retrieved up to limit (*limit == original value).
|
||||
*
|
||||
* Return values (failure):
|
||||
* Z_MEM_ERROR if memory could not be allocated for processing,
|
||||
* Z_DATA_ERROR if the deflate data is invalid or incomplete,
|
||||
* Z_VERSION_ERROR if the version of zlib.h and the version of the
|
||||
* library linked do not match, or
|
||||
* Z_MEM_ERROR if memory could not be allocated for processing,
|
||||
* Z_DATA_ERROR if the deflate data is invalid or incomplete,
|
||||
* Z_VERSION_ERROR if the version of zlib.h and the version of the
|
||||
* library linked do not match, or
|
||||
* Z_ERRNO if there is an error reading or writing the files.
|
||||
*/
|
||||
static int inflate_to_buffer(FILE *source, unsigned char *buf, size_t *limit)
|
||||
@@ -305,7 +305,7 @@ int main(int argc, char **argv)
|
||||
buffer_reverse(buf, datasize - 1);
|
||||
|
||||
if (datasize <= skip) {
|
||||
fprintf(stderr, "Failed to skip %u bytes, total data size is %u!\n",
|
||||
fprintf(stderr, "Failed to skip %u bytes, total data size is %u!\n",
|
||||
(unsigned int)skip, (unsigned int)datasize);
|
||||
goto out_bad;
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ static void write_file(const char *path, size_t len, bool pem, bool cert)
|
||||
fprintf(stderr, "No data to write\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
if (cert)
|
||||
mode |= S_IRGRP | S_IROTH;
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
* adapted from musl code:
|
||||
*
|
||||
* Copyright © 2005-2020 Rich Felker, et al.
|
||||
*
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
@@ -26,10 +26,10 @@
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
|
||||
Reference in New Issue
Block a user