@@ -732,7 +732,7 @@ droproot(const char *username, const char *chroot_dir)
732
732
{
733
733
int ret = capng_change_id (pw -> pw_uid , pw -> pw_gid , CAPNG_NO_FLAG );
734
734
if (ret < 0 )
735
- error ("capng_change_id(): return %d\n " , ret );
735
+ error ("capng_change_id(): return %d" , ret );
736
736
else
737
737
fprintf (stderr , "dropped privs to %s\n" , username );
738
738
}
@@ -1374,7 +1374,7 @@ open_interface(const char *device, netdissect_options *ndo, char *ebuf)
1374
1374
* specific case would be an error message that looks a bit odd.
1375
1375
*/
1376
1376
newdev [strlen (newdev )- 1 ]++ ;
1377
- error ("%s is not a monitor mode VAP\n "
1377
+ error ("%s is not a monitor mode VAP"
1378
1378
"To create a new monitor mode VAP use:\n"
1379
1379
" ifconfig %s create wlandev %s wlanmode monitor\n"
1380
1380
"and use %s as the tcpdump interface" ,
@@ -2019,7 +2019,7 @@ main(int argc, char **argv)
2019
2019
#if defined(HAVE_FORK ) || defined(HAVE_VFORK )
2020
2020
zflag = optarg ;
2021
2021
#else
2022
- error ("-z cannot be used. Fork subprocess not implemented.\n " );
2022
+ error ("-z cannot be used. Fork subprocess not implemented." );
2023
2023
#endif
2024
2024
break ;
2025
2025
@@ -2112,12 +2112,12 @@ main(int argc, char **argv)
2112
2112
if (ndo -> ndo_xflag && ndo -> ndo_Xflag )
2113
2113
error ("-x[x] and -X[X] are mutually exclusive." );
2114
2114
if (Cflag != 0 && WFileName == NULL )
2115
- error ("-C cannot be used without -w.\n " );
2115
+ error ("-C cannot be used without -w." );
2116
2116
if (Gflag != 0 && WFileName == NULL )
2117
- error ("-G cannot be used without -w.\n " );
2117
+ error ("-G cannot be used without -w." );
2118
2118
#if defined(HAVE_FORK ) || defined(HAVE_VFORK )
2119
2119
if (zflag != NULL && (WFileName == NULL || (Cflag == 0 && Gflag == 0 )))
2120
- error ("-z cannot be used without -w and (-C or -G).\n " );
2120
+ error ("-z cannot be used without -w and (-C or -G)." );
2121
2121
#endif
2122
2122
2123
2123
if (cnt != -1 )
@@ -2217,11 +2217,11 @@ main(int argc, char **argv)
2217
2217
VFile = fopen (VFileName , "r" );
2218
2218
2219
2219
if (VFile == NULL )
2220
- error ("Unable to open file: %s\n " , pcap_strerror (errno ));
2220
+ error ("Unable to open file: %s" , pcap_strerror (errno ));
2221
2221
2222
2222
ret = get_next_file (VFile , VFileLine );
2223
2223
if (!ret )
2224
- error ("Nothing in %s\n " , VFileName );
2224
+ error ("Nothing in %s" , VFileName );
2225
2225
RFileName = VFileLine ;
2226
2226
}
2227
2227
0 commit comments