summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:37 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:37 -0700
commit70e00ee64b48706de96ed313d44b28c0da671ae9 (patch)
tree89f688baf4f162b3be7f2b0a24b11ec43859f64e /sample
parentf20e4aaee1f228c3d9e9e0b5219010833851b44f (diff)
downloadsyslinux-70e00ee64b48706de96ed313d44b28c0da671ae9.tar.gz
Run Nindent on sample/skipatou.c
Automatically reformat sample/skipatou.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'sample')
-rw-r--r--sample/skipatou.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sample/skipatou.c b/sample/skipatou.c
index 1641a131..ea2dbadc 100644
--- a/sample/skipatou.c
+++ b/sample/skipatou.c
@@ -1,14 +1,13 @@
-static inline int
-isdigit(int ch)
+static inline int isdigit(int ch)
{
- return (ch >= '0') && (ch <= '9');
+ return (ch >= '0') && (ch <= '9');
}
unsigned int skip_atou(const char **s)
{
- int i=0;
+ int i = 0;
- while (isdigit(**s))
- i = i*10 + *((*s)++) - '0';
- return i;
+ while (isdigit(**s))
+ i = i * 10 + *((*s)++) - '0';
+ return i;
}