aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2010-08-05 22:27:17 +0000
committerBill Meier <wmeier@newsguy.com>2010-08-05 22:27:17 +0000
commit88953d281897dae3ef2a10246741d975db2754cd (patch)
tree4a4db6fb8668ea0cdff63a6ea33e28c64cef26a2
parent80fee5052b1badc68a47a23f2450d8261fd3510e (diff)
(Trivial) Define rpcprogs_packet() as returning gboolean; Whitespace cleanup.
svn path=/trunk/; revision=33722
-rw-r--r--gtk/rpc_progs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk/rpc_progs.c b/gtk/rpc_progs.c
index f2ba52eb8b..047a80d986 100644
--- a/gtk/rpc_progs.c
+++ b/gtk/rpc_progs.c
@@ -160,7 +160,7 @@ add_new_program(rpc_program_t *rp)
-static int
+static gboolean
rpcprogs_packet(void *dummy _U_, packet_info *pinfo, epan_dissect_t *edt _U_, const void *arg)
{
const rpc_call_info_value *ri = arg;
@@ -216,7 +216,7 @@ rpcprogs_packet(void *dummy _U_, packet_info *pinfo, epan_dissect_t *edt _U_, co
/* we are only interested in reply packets */
if(ri->request || !rp){
- return 0;
+ return FALSE;
}
/* calculate time delta between request and reply */
@@ -256,7 +256,7 @@ rpcprogs_packet(void *dummy _U_, packet_info *pinfo, epan_dissect_t *edt _U_, co
}
rp->num++;
- return 1;
+ return TRUE;
}
@@ -275,11 +275,11 @@ rpcprogs_draw(void *dummy _U_)
}
/* Scale the average SRT in units of 1us and round to the nearest us.
tot.secs is a time_t which may be 32 or 64 bits (or even floating)
- depending on the platform. After casting tot.secs to a 64 bits int, it
- would take a capture with a duration of over 136 *years* to
- overflow the secs portion of td. */
+ depending on the platform. After casting tot.secs to a 64 bits int, it
+ would take a capture with a duration of over 136 *years* to
+ overflow the secs portion of td. */
td = ((guint64)(rp->tot.secs))*NANOSECS_PER_SEC + rp->tot.nsecs;
- td = ((td / rp->num) + 500) / 1000;
+ td = ((td / rp->num) + 500) / 1000;
g_snprintf(rp->sprogram, sizeof(rp->sprogram), "%s",rpc_prog_name(rp->program));
gtk_label_set_text(GTK_LABEL(rp->wprogram), rp->sprogram);