aboutsummaryrefslogtreecommitdiffstats
path: root/rdps.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-01-24 10:53:25 +0000
committerGuy Harris <guy@alum.mit.edu>2004-01-24 10:53:25 +0000
commit65f18bb833c0259fa3705b6f3147f95354d4a101 (patch)
tree4f33de0c36a5dc83443857df1e1cd4ff680fbe32 /rdps.c
parent7180513677713540595701ba3dc91c62a895fe89 (diff)
As with "file_write_error_message()", so with
"file_close_error_message()" - but just use "file_write_error_message()" for UNIX-style errors, under the assumption that a close will only fail because a buffer-flushing write fails or because "close()" itself fails when, for example, pushing unsynced NFS client-side writes out over the wire. Make several routines in "print.c" return success/failure indications. Check for write errors when printing "Follow TCP Stream" stuff or saving it to a file. svn path=/trunk/; revision=9825
Diffstat (limited to 'rdps.c')
-rw-r--r--rdps.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rdps.c b/rdps.c
index 55158bb1ef..69af5be2ba 100644
--- a/rdps.c
+++ b/rdps.c
@@ -1,6 +1,6 @@
/* rdps.c
*
- * $Id: rdps.c,v 1.6 2004/01/23 00:43:15 jmayer Exp $
+ * $Id: rdps.c,v 1.7 2004/01/24 10:53:25 guy Exp $
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
@@ -127,7 +127,7 @@ int main(int argc, char **argv)
void start_code(FILE *fd, char *func)
{
fprintf(fd, "/* Created by rdps.c. Do not edit! */\n");
- fprintf(fd, "void print_ps_%s(FILE *fd) {\n", func);
+ fprintf(fd, "int print_ps_%s(FILE *fd) {\n", func);
}
void write_code(FILE *fd, char *string)
@@ -139,6 +139,7 @@ void write_code(FILE *fd, char *string)
void end_code(FILE *fd)
{
+ fprintf(fd, "\treturn ferror(fd);\n");
fprintf(fd, "}\n\n\n");
}