aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2009-06-02 07:18:18 +0000
committerGuy Harris <guy@alum.mit.edu>2009-06-02 07:18:18 +0000
commit0c95d973d33e425757a1c88332398a804a552a52 (patch)
treeed42bcb8ede19873ceec548d5d83da102c8e3747 /wiretap
parent38638f9fb154d5eb4d00435bee9ec0ab726f83cb (diff)
No newlines in the additional-error-information string, please.
svn path=/trunk/; revision=28584
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/netmon.c2
-rw-r--r--wiretap/pcap-common.c24
-rw-r--r--wiretap/snoop.c4
3 files changed, 15 insertions, 15 deletions
diff --git a/wiretap/netmon.c b/wiretap/netmon.c
index 66b1cacad6..e1d97c6660 100644
--- a/wiretap/netmon.c
+++ b/wiretap/netmon.c
@@ -409,7 +409,7 @@ static gboolean netmon_read(wtap *wth, int *err, gchar **err_info,
* have a pseudo-header.
*/
*err = WTAP_ERR_BAD_RECORD;
- *err_info = g_strdup_printf("netmon: ATM file has a %u-byte packet, too small to have even an ATM pseudo-header\n",
+ *err_info = g_strdup_printf("netmon: ATM file has a %u-byte packet, too small to have even an ATM pseudo-header",
packet_size);
return FALSE;
}
diff --git a/wiretap/pcap-common.c b/wiretap/pcap-common.c
index 1311a03a1f..03cb2780c3 100644
--- a/wiretap/pcap-common.c
+++ b/wiretap/pcap-common.c
@@ -831,7 +831,7 @@ pcap_read_irda_pseudoheader(FILE_T fh, union wtap_pseudo_header *pseudo_header,
if (pntohs(&irda_phdr[IRDA_SLL_PROTOCOL_OFFSET]) != 0x0017) {
*err = WTAP_ERR_BAD_RECORD;
if (err_info != NULL)
- *err_info = g_strdup("libpcap: IrDA capture has a packet with an invalid sll_protocol field\n");
+ *err_info = g_strdup("libpcap: IrDA capture has a packet with an invalid sll_protocol field");
return FALSE;
}
@@ -881,7 +881,7 @@ pcap_read_lapd_pseudoheader(FILE_T fh, union wtap_pseudo_header *pseudo_header,
if (pntohs(&lapd_phdr[LAPD_SLL_PROTOCOL_OFFSET]) != ETH_P_LAPD) {
*err = WTAP_ERR_BAD_RECORD;
if (err_info != NULL)
- *err_info = g_strdup("libpcap: LAPD capture has a packet with an invalid sll_protocol field\n");
+ *err_info = g_strdup("libpcap: LAPD capture has a packet with an invalid sll_protocol field");
return FALSE;
}
@@ -1135,7 +1135,7 @@ pcap_process_pseudo_header(wtap *wth, FILE_T fh, guint packet_size,
* have a pseudo-header.
*/
*err = WTAP_ERR_BAD_RECORD;
- *err_info = g_strdup_printf("pcap: Nokia IPSO ATM file has a %u-byte packet, too small to have even an ATM pseudo-header\n",
+ *err_info = g_strdup_printf("pcap: Nokia IPSO ATM file has a %u-byte packet, too small to have even an ATM pseudo-header",
packet_size);
return -1;
}
@@ -1154,7 +1154,7 @@ pcap_process_pseudo_header(wtap *wth, FILE_T fh, guint packet_size,
* have a pseudo-header.
*/
*err = WTAP_ERR_BAD_RECORD;
- *err_info = g_strdup_printf("pcap: SunATM file has a %u-byte packet, too small to have even an ATM pseudo-header\n",
+ *err_info = g_strdup_printf("pcap: SunATM file has a %u-byte packet, too small to have even an ATM pseudo-header",
packet_size);
return -1;
}
@@ -1195,7 +1195,7 @@ pcap_process_pseudo_header(wtap *wth, FILE_T fh, guint packet_size,
* have a pseudo-header.
*/
*err = WTAP_ERR_BAD_RECORD;
- *err_info = g_strdup_printf("pcap: IrDA file has a %u-byte packet, too small to have even an IrDA pseudo-header\n",
+ *err_info = g_strdup_printf("pcap: IrDA file has a %u-byte packet, too small to have even an IrDA pseudo-header",
packet_size);
return -1;
}
@@ -1213,7 +1213,7 @@ pcap_process_pseudo_header(wtap *wth, FILE_T fh, guint packet_size,
* have a pseudo-header.
*/
*err = WTAP_ERR_BAD_RECORD;
- *err_info = g_strdup_printf("pcap: MTP2 file has a %u-byte packet, too small to have even an MTP2 pseudo-header\n",
+ *err_info = g_strdup_printf("pcap: MTP2 file has a %u-byte packet, too small to have even an MTP2 pseudo-header",
packet_size);
return -1;
}
@@ -1231,7 +1231,7 @@ pcap_process_pseudo_header(wtap *wth, FILE_T fh, guint packet_size,
* have a pseudo-header.
*/
*err = WTAP_ERR_BAD_RECORD;
- *err_info = g_strdup_printf("pcap: LAPD file has a %u-byte packet, too small to have even a LAPD pseudo-header\n",
+ *err_info = g_strdup_printf("pcap: LAPD file has a %u-byte packet, too small to have even a LAPD pseudo-header",
packet_size);
return -1;
}
@@ -1249,7 +1249,7 @@ pcap_process_pseudo_header(wtap *wth, FILE_T fh, guint packet_size,
* have a pseudo-header.
*/
*err = WTAP_ERR_BAD_RECORD;
- *err_info = g_strdup_printf("pcap: SITA file has a %u-byte packet, too small to have even a SITA pseudo-header\n",
+ *err_info = g_strdup_printf("pcap: SITA file has a %u-byte packet, too small to have even a SITA pseudo-header",
packet_size);
return -1;
}
@@ -1268,7 +1268,7 @@ pcap_process_pseudo_header(wtap *wth, FILE_T fh, guint packet_size,
* have a pseudo-header.
*/
*err = WTAP_ERR_BAD_RECORD;
- *err_info = g_strdup_printf("pcap: Linux USB file has a %u-byte packet, too small to have even a Linux USB pseudo-header\n",
+ *err_info = g_strdup_printf("pcap: Linux USB file has a %u-byte packet, too small to have even a Linux USB pseudo-header",
packet_size);
return -1;
}
@@ -1291,7 +1291,7 @@ pcap_process_pseudo_header(wtap *wth, FILE_T fh, guint packet_size,
* have a pseudo-header.
*/
*err = WTAP_ERR_BAD_RECORD;
- *err_info = g_strdup_printf("pcap: lipcap bluetooth file has a %u-byte packet, too small to have even a pseudo-header\n",
+ *err_info = g_strdup_printf("pcap: lipcap bluetooth file has a %u-byte packet, too small to have even a pseudo-header",
packet_size);
return -1;
}
@@ -1309,7 +1309,7 @@ pcap_process_pseudo_header(wtap *wth, FILE_T fh, guint packet_size,
* have a pseudo-header.
*/
*err = WTAP_ERR_BAD_RECORD;
- *err_info = g_strdup_printf("pcap: ERF file has a %u-byte packet, too small to have even an ERF pseudo-header\n",
+ *err_info = g_strdup_printf("pcap: ERF file has a %u-byte packet, too small to have even an ERF pseudo-header",
packet_size);
return -1;
}
@@ -1342,7 +1342,7 @@ pcap_process_pseudo_header(wtap *wth, FILE_T fh, guint packet_size,
* have a pseudo-header.
*/
*err = WTAP_ERR_BAD_RECORD;
- *err_info = g_strdup_printf("pcap: I2C file has a %u-byte packet, too small to have even a I2C pseudo-header\n",
+ *err_info = g_strdup_printf("pcap: I2C file has a %u-byte packet, too small to have even a I2C pseudo-header",
packet_size);
return -1;
}
diff --git a/wiretap/snoop.c b/wiretap/snoop.c
index 7862df5680..1f20f655ee 100644
--- a/wiretap/snoop.c
+++ b/wiretap/snoop.c
@@ -484,7 +484,7 @@ static gboolean snoop_read(wtap *wth, int *err, gchar **err_info,
* have a pseudo-header.
*/
*err = WTAP_ERR_BAD_RECORD;
- *err_info = g_strdup_printf("snoop: atmsnoop file has a %u-byte packet, too small to have even an ATM pseudo-header\n",
+ *err_info = g_strdup_printf("snoop: atmsnoop file has a %u-byte packet, too small to have even an ATM pseudo-header",
packet_size);
return FALSE;
}
@@ -520,7 +520,7 @@ static gboolean snoop_read(wtap *wth, int *err, gchar **err_info,
* have a pseudo-header.
*/
*err = WTAP_ERR_BAD_RECORD;
- *err_info = g_strdup_printf("snoop: Shomiti wireless file has a %u-byte packet, too small to have even a wireless pseudo-header\n",
+ *err_info = g_strdup_printf("snoop: Shomiti wireless file has a %u-byte packet, too small to have even a wireless pseudo-header",
packet_size);
return FALSE;
}