mirror of
https://github.com/curl/curl.git
synced 2026-08-25 09:43:32 +03:00
fixed missing header; changed bail out from exit() to return().
Mentioned on the list by Michal Marek.
This commit is contained in:
parent
3bb4602227
commit
5e9c564883
1 changed files with 2 additions and 1 deletions
|
|
@ -14,6 +14,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#ifdef WIN32
|
||||
#include <io.h>
|
||||
#else
|
||||
|
|
@ -61,7 +62,7 @@ int main(int argc, char **argv)
|
|||
/* get the file size of the local file */
|
||||
if(stat(LOCAL_FILE, &file_info)) {
|
||||
printf("Couldnt open '%s': %s\n", LOCAL_FILE, strerror(errno));
|
||||
exit(1);
|
||||
return 1;
|
||||
}
|
||||
printf("Local file size: %ld bytes.\n", file_info.st_size);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue