From ab9158b220b675921dd98aa06fda13c9bf3ce703 Mon Sep 17 00:00:00 2001 From: mukto_bihongo <206247917+antareepsarkar@users.noreply.github.com> Date: Wed, 25 Nov 2026 22:43:28 +0530 Subject: [PATCH] Fix some grammar --- libdnet-stripped/config/config.sub | 2 +- libnetutil/ICMPv6Header.h | 2 +- libnetutil/netutil.h | 2 +- libpcap/CMakeLists.txt | 2 +- libpcap/rpcap-protocol.c | 2 +- libz/contrib/minizip/zip.h | 2 +- nping/ProbeMode.cc | 6 +++--- zenmap/zenmapGUI/higwidgets/higspinner.py | 4 ++-- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/libdnet-stripped/config/config.sub b/libdnet-stripped/config/config.sub index 4aaae46f6..7df890e78 100755 --- a/libdnet-stripped/config/config.sub +++ b/libdnet-stripped/config/config.sub @@ -2251,7 +2251,7 @@ case $kernel-$os-$obj in ;; none--*) # None (no kernel, i.e. freestanding / bare metal), - # can be paired with an machine code file format + # can be paired with a machine code file format ;; -*-) # Blank kernel with real OS is always fine. diff --git a/libnetutil/ICMPv6Header.h b/libnetutil/ICMPv6Header.h index e4f5a3d8f..a3bc00639 100644 --- a/libnetutil/ICMPv6Header.h +++ b/libnetutil/ICMPv6Header.h @@ -72,7 +72,7 @@ * different types. Each type has its own header and possibly a variable * length data field. Information messages have an "invoking packet" field * which is the IP packet that triggered the emission of the ICMPv6 message. - * Other messages may contain a "data" field, like echo requests an replies. + * Other messages may contain a "data" field, like echo requests and replies. * Some others may contain ICMPv6 Options. * * So the thing is, that this class only represents fixed-length ICMPv6 diff --git a/libnetutil/netutil.h b/libnetutil/netutil.h index a62e00ae0..934a07569 100644 --- a/libnetutil/netutil.h +++ b/libnetutil/netutil.h @@ -342,7 +342,7 @@ int raw_socket_or_eth(int sendpref, const char *ifname, devtype iftype, int *rawsd, netutil_eth_t **ethsd, int af=AF_INET); /* Takes a protocol number like IPPROTO_TCP, IPPROTO_UDP, or - * IPPROTO_IP and returns a ascii representation (or "unknown" if it + * IPPROTO_IP and returns an ascii representation (or "unknown" if it * doesn't recognize the number). Returned string is in lowercase. */ const char *proto2ascii_lowercase(u8 proto) ; diff --git a/libpcap/CMakeLists.txt b/libpcap/CMakeLists.txt index e3634732f..80c8a2eb0 100644 --- a/libpcap/CMakeLists.txt +++ b/libpcap/CMakeLists.txt @@ -2119,7 +2119,7 @@ else(WIN32) cmake_pop_check_state() # - # Check whether there's a inet/ipnet.h header and, + # Check whether there's an inet/ipnet.h header and, # if so, whether it defines IPNET_ANY_LINK - if so, # we assume we have the "any" device (that's a # Solaris header, and later versions of Solaris diff --git a/libpcap/rpcap-protocol.c b/libpcap/rpcap-protocol.c index d1aac8be7..f94c3ce9f 100644 --- a/libpcap/rpcap-protocol.c +++ b/libpcap/rpcap-protocol.c @@ -63,7 +63,7 @@ * * \param ver: the protocol version we want to put in the reply. * - * \param errcode: a integer which tells the other party the type of error + * \param errcode: an integer which tells the other party the type of error * we had. * * \param error: an user-allocated (and '0' terminated) buffer that contains diff --git a/libz/contrib/minizip/zip.h b/libz/contrib/minizip/zip.h index 996244078..6c4c785c2 100644 --- a/libz/contrib/minizip/zip.h +++ b/libz/contrib/minizip/zip.h @@ -350,7 +350,7 @@ extern int ZEXPORT zipRemoveExtraInfoBlock(char* pData, int* dataLen, short sHea /* zipRemoveExtraInfoBlock - Added by Mathias Svensson - Remove extra information block from a extra information data for the local file header or central directory header + Remove extra information block from an extra information data for the local file header or central directory header It is needed to remove ZIP64 extra information blocks when before data is written if using RAW mode. diff --git a/nping/ProbeMode.cc b/nping/ProbeMode.cc index 282cda337..ba55c2143 100644 --- a/nping/ProbeMode.cc +++ b/nping/ProbeMode.cc @@ -1300,7 +1300,7 @@ const char *ProbeMode::getBPFFilterString(){ skip_icmp_matching=true; break; } - /* We have an specific ICMP type to look for */ + /* We have a specific ICMP type to look for */ filter << "(icmp and icmp[icmptype]"; } if(!skip_icmp_matching){ @@ -1833,7 +1833,7 @@ void ProbeMode::probe_tcpconnect_event_handler(nsock_pool nsp, nsock_event nse, break; - /* We need to start an scheduled TCP Handshake. Theoretically in this + /* We need to start a scheduled TCP Handshake. Theoretically in this * case we can trust the supplied "mydata" structure because all our timers * have the same exact time and Nsock should do FIFO with list of timer * events. Additionally, even if that failed, more than MAX_PKT timer @@ -2043,7 +2043,7 @@ void ProbeMode::probe_udpunpriv_event_handler(nsock_pool nsp, nsock_event nse, v - /* We need to start an scheduled UDP packet transmission. */ + /* We need to start a scheduled UDP packet transmission. */ case NSE_TYPE_TIMER: if( mypacket==NULL ) nping_fatal(QT_3, "udpunpriv_event_handler():: NULL value supplied."); diff --git a/zenmap/zenmapGUI/higwidgets/higspinner.py b/zenmap/zenmapGUI/higwidgets/higspinner.py index 30c870e04..d31c21424 100644 --- a/zenmap/zenmapGUI/higwidgets/higspinner.py +++ b/zenmap/zenmapGUI/higwidgets/higspinner.py @@ -170,7 +170,7 @@ class HIGSpinnerCache: def load_animated_from_lookup(self, icon_name=None): """Loads an animated icon by doing a lookup on the icon theme.""" - # If user do not choose a icon_name, use the default one + # If user do not choose an icon_name, use the default one if icon_name is None: icon_name = self.default_animated_icon_name @@ -292,7 +292,7 @@ class HIGSpinner(Gtk.EventBox): # is in progress, and __bump_frame is being continually called). If the # spinner is static, timer_task is 0 self.timer_task = 0 - # animated_pixbuf_index is a index on + # animated_pixbuf_index is an index on self.animated_pixbuf_index = 0 # current_pixbuf is initially the default rest_pixbuf self.current_pixbuf = self.cache.spinner_images.rest_pixbuf