aboutsummaryrefslogtreecommitdiff
path: root/tests/chargen.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/chargen.c')
-rw-r--r--tests/chargen.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/chargen.c b/tests/chargen.c
index a3b3290..75d096c 100644
--- a/tests/chargen.c
+++ b/tests/chargen.c
@@ -76,13 +76,20 @@ main (int argc, char **argv)
76 76
77 if (pies_url_create (&url, argv[1])) 77 if (pies_url_create (&url, argv[1]))
78 { 78 {
79 perror (argv[0]); 79 perror (argv[1]);
80 return 64; 80 return 64;
81 } 81 }
82 82
83 fd = url_connect (url, NULL); 83 fd = url_connect (url, NULL);
84 if (fd == -1)
85 return 1;
84 fp = fdopen (fd, "r"); 86 fp = fdopen (fd, "r");
85 87 if (!fp)
88 {
89 perror ("fdopen");
90 return 1;
91 }
92
86 first = next_char (0); 93 first = next_char (0);
87 c = first; 94 c = first;
88 do 95 do

Return to:

Send suggestions and report system problems to the System administrator.