Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nccf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
702
Provoz
nccf
Commits
dfbeed9d
Commit
dfbeed9d
authored
12 years ago
by
Yorhel
Browse files
Options
Downloads
Patches
Plain Diff
Fixing some whitespace issues
parent
21c056f5
No related branches found
No related tags found
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
README
+1
-1
1 addition, 1 deletion
README
src/exclude.c
+4
-4
4 additions, 4 deletions
src/exclude.c
src/global.h
+5
-5
5 additions, 5 deletions
src/global.h
src/help.c
+4
-4
4 additions, 4 deletions
src/help.c
src/main.c
+4
-4
4 additions, 4 deletions
src/main.c
src/util.c
+7
-7
7 additions, 7 deletions
src/util.c
with
25 additions
and
25 deletions
README
+
1
−
1
View file @
dfbeed9d
...
@@ -9,7 +9,7 @@ DESCRIPTION
...
@@ -9,7 +9,7 @@ DESCRIPTION
REQUIREMENTS
REQUIREMENTS
In order to compile and install ncdu, you need to have
In order to compile and install ncdu, you need to have
at least...
at least...
...
...
This diff is collapsed.
Click to expand it.
src/exclude.c
+
4
−
4
View file @
dfbeed9d
/* ncdu - NCurses Disk Usage
/* ncdu - NCurses Disk Usage
Copyright (c) 2007-2012 Yoran Heling
Copyright (c) 2007-2012 Yoran Heling
Permission is hereby granted, free of charge, to any person obtaining
Permission is hereby granted, free of charge, to any person obtaining
...
@@ -9,10 +9,10 @@
...
@@ -9,10 +9,10 @@
distribute, sublicense, and/or sell copies of the Software, and to
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
the following conditions:
The above copyright notice and this permission notice shall be included
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
...
...
This diff is collapsed.
Click to expand it.
src/global.h
+
5
−
5
View file @
dfbeed9d
/* ncdu - NCurses Disk Usage
/* ncdu - NCurses Disk Usage
Copyright (c) 2007-2012 Yoran Heling
Copyright (c) 2007-2012 Yoran Heling
Permission is hereby granted, free of charge, to any person obtaining
Permission is hereby granted, free of charge, to any person obtaining
...
@@ -9,10 +9,10 @@
...
@@ -9,10 +9,10 @@
distribute, sublicense, and/or sell copies of the Software, and to
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
the following conditions:
The above copyright notice and this permission notice shall be included
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
...
@@ -63,7 +63,7 @@ struct dir {
...
@@ -63,7 +63,7 @@ struct dir {
int
items
;
int
items
;
unsigned
char
flags
;
unsigned
char
flags
;
char
name
[
3
];
/* must be large enough to hold ".." */
char
name
[
3
];
/* must be large enough to hold ".." */
};
};
/* sizeof(total dir) = SDIRSIZE + strlen(name) = sizeof(struct dir) - 3 + strlen(name) + 1 */
/* sizeof(total dir) = SDIRSIZE + strlen(name) = sizeof(struct dir) - 3 + strlen(name) + 1 */
#define SDIRSIZE (sizeof(struct dir)-2)
#define SDIRSIZE (sizeof(struct dir)-2)
...
...
This diff is collapsed.
Click to expand it.
src/help.c
+
4
−
4
View file @
dfbeed9d
/* ncdu - NCurses Disk Usage
/* ncdu - NCurses Disk Usage
Copyright (c) 2007-2012 Yoran Heling
Copyright (c) 2007-2012 Yoran Heling
Permission is hereby granted, free of charge, to any person obtaining
Permission is hereby granted, free of charge, to any person obtaining
...
@@ -9,10 +9,10 @@
...
@@ -9,10 +9,10 @@
distribute, sublicense, and/or sell copies of the Software, and to
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
the following conditions:
The above copyright notice and this permission notice shall be included
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
...
...
This diff is collapsed.
Click to expand it.
src/main.c
+
4
−
4
View file @
dfbeed9d
/* ncdu - NCurses Disk Usage
/* ncdu - NCurses Disk Usage
Copyright (c) 2007-2012 Yoran Heling
Copyright (c) 2007-2012 Yoran Heling
Permission is hereby granted, free of charge, to any person obtaining
Permission is hereby granted, free of charge, to any person obtaining
...
@@ -9,10 +9,10 @@
...
@@ -9,10 +9,10 @@
distribute, sublicense, and/or sell copies of the Software, and to
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
the following conditions:
The above copyright notice and this permission notice shall be included
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
...
...
This diff is collapsed.
Click to expand it.
src/util.c
+
7
−
7
View file @
dfbeed9d
/* ncdu - NCurses Disk Usage
/* ncdu - NCurses Disk Usage
Copyright (c) 2007-2012 Yoran Heling
Copyright (c) 2007-2012 Yoran Heling
Permission is hereby granted, free of charge, to any person obtaining
Permission is hereby granted, free of charge, to any person obtaining
...
@@ -9,10 +9,10 @@
...
@@ -9,10 +9,10 @@
distribute, sublicense, and/or sell copies of the Software, and to
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
the following conditions:
The above copyright notice and this permission notice shall be included
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
...
@@ -56,7 +56,7 @@ char *cropstr(const char *from, int s) {
...
@@ -56,7 +56,7 @@ char *cropstr(const char *from, int s) {
char
*
formatsize
(
int64_t
from
)
{
char
*
formatsize
(
int64_t
from
)
{
static
char
dat
[
9
];
/* "xxx.xMiB" */
static
char
dat
[
9
];
/* "xxx.xMiB" */
float
r
=
from
;
float
r
=
from
;
char
c
=
' '
;
char
c
=
' '
;
if
(
r
<
1000
.
0
f
)
{
}
if
(
r
<
1000
.
0
f
)
{
}
else
if
(
r
<
1023e3
f
)
{
c
=
'K'
;
r
/=
1024
.
0
f
;
}
else
if
(
r
<
1023e3
f
)
{
c
=
'K'
;
r
/=
1024
.
0
f
;
}
...
@@ -111,7 +111,7 @@ int ncresize(int minrows, int mincols) {
...
@@ -111,7 +111,7 @@ int ncresize(int minrows, int mincols) {
erase
();
erase
();
refresh
();
refresh
();
endwin
();
endwin
();
exit
(
0
);
exit
(
0
);
}
}
if
(
ch
==
'i'
)
if
(
ch
==
'i'
)
return
1
;
return
1
;
...
@@ -218,7 +218,7 @@ void freedir(struct dir *dr) {
...
@@ -218,7 +218,7 @@ void freedir(struct dir *dr) {
/* free dr->sub recursively */
/* free dr->sub recursively */
if
(
dr
->
sub
)
if
(
dr
->
sub
)
freedir_rec
(
dr
->
sub
);
freedir_rec
(
dr
->
sub
);
/* update references */
/* update references */
if
(
dr
->
parent
&&
dr
->
parent
->
sub
==
dr
)
if
(
dr
->
parent
&&
dr
->
parent
->
sub
==
dr
)
dr
->
parent
->
sub
=
dr
->
next
;
dr
->
parent
->
sub
=
dr
->
next
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment