Introduction
Introduction Statistics Contact Development Disclaimer Help
tfix warnings for output folder creation - slidergrid - grid of elastic sliders…
git clone git://src.adamsgaard.dk/slidergrid
Log
Files
Refs
README
LICENSE
---
commit aa7f30b3e772dca9dfc4bc189437b5c3acbeb6d3
parent 9d4d792211a8c8e0a94dfa6d22b90e9ed6c7c608
Author: Anders Damsgaard <[email protected]>
Date: Thu, 17 Mar 2016 15:49:54 -0700
fix warnings for output folder creation
Diffstat:
M slidergrid/main.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/slidergrid/main.c b/slidergrid/main.c
t@@ -104,10 +104,10 @@ int main(int argc, char** argv)
struct stat st = {0};
int status;
if (stat(output_folder, &st) == -1) {
- if (status = mkdir(output_folder,
- S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH)) {
+ status = mkdir(output_folder, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
+ if (status != 0) {
fprintf(stderr, "Error: Could not create output folder '%s' (%d)\n…
- output_folder);
+ output_folder, status);
return 1;
}
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.