diff options
| author | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-24 20:26:46 +0200 | 
|---|---|---|
| committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-24 20:28:18 +0200 | 
| commit | 49e7f1798ec28957772e180c8dea3fddf586481d (patch) | |
| tree | 33d83f0ee779ad6064b8de8547dcd4b78673c239 | |
| parent | 21cab71e75e7dd0f7d91e28e310e8b59af304aa6 (diff) | |
| download | ponymap-49e7f1798ec28957772e180c8dea3fddf586481d.tar.gz ponymap-49e7f1798ec28957772e180c8dea3fddf586481d.tar.xz ponymap-49e7f1798ec28957772e180c8dea3fddf586481d.zip | |
Get rid of some memory holes on x86_64
| -rw-r--r-- | ponymap.c | 13 | ||||
| -rw-r--r-- | utils.c | 1 | 
2 files changed, 7 insertions, 7 deletions
| @@ -214,8 +214,6 @@ struct unit  	size_t ref_count;                   ///< Reference count  	struct target *target;              ///< Target context -	uint16_t port;                      ///< The scanned port -  	struct service *service;            ///< Service  	void *service_data;                 ///< User data for service @@ -223,17 +221,18 @@ struct unit  	void *transport_data;               ///< User data for transport  	int socket_fd;                      ///< The TCP socket +	uint16_t port;                      ///< The scanned port  	struct str read_buffer;             ///< Unprocessed input  	struct str write_buffer;            ///< Output yet to be sent out  	struct poller_timer timeout_event;  ///< Timeout event  	struct poller_fd fd_event;          ///< FD event +	struct str_vector info;             ///< Info resulting from the scan  	bool scan_started;                  ///< Whether the scan has been started  	bool abortion_requested;            ///< Abortion requested by service  	bool aborted;                       ///< Scan has been aborted  	bool success;                       ///< Service has been found -	struct str_vector info;             ///< Info resulting from the scan  };  static struct unit *unit_ref (struct unit *self); @@ -278,12 +277,12 @@ struct indicator  {  	struct poller_timer timer;          ///< The animation timer -	unsigned position;                  ///< The current animation character  	const char *frames;                 ///< All the characters  	size_t frames_len;                  ///< The number of characters -	bool shown;                         ///< The indicator is shown on screen  	char *status;                       ///< The status text +	unsigned position;                  ///< The current animation character +	bool shown;                         ///< The indicator is shown on screen  };  static void indicator_init (struct indicator *self, struct poller *poller); @@ -298,11 +297,11 @@ indicator_free (struct indicator *self)  struct generator  { -	struct ip_range *ip_range_iter;     ///< Current IP range -	uint32_t ip_iter;                   ///< IP iterator within the range  	struct target *current_target;      ///< Current target +	struct ip_range *ip_range_iter;     ///< Current IP range  	struct port_range *port_range_iter; ///< Current port range +	uint32_t ip_iter;                   ///< IP iterator within the range  	uint16_t port_iter;                 ///< Port iterator within the range  	struct str_map_iter svc_iter;       ///< Service iterator @@ -883,6 +883,7 @@ struct poller_idle  {  	LIST_HEADER (poller_idle)  	struct poller *poller;              ///< Our poller +  	bool active;                        ///< Whether we're on the list  	poller_idle_fn dispatcher;          ///< Event dispatcher | 
