Hack for
[metze/wireshark/wip.git] / clopts_common.c
index 1c7cea9b16c253d37c4c4b4de20ea407be07f950..4143013bdafacce1e9dbe2f3cc6f758aa0f205d0 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
 
 #include <stdio.h>
 #include <string.h>
-
-#include <epan/proto.h>
-#include <epan/packet.h>
-#include <epan/prefs.h>
+#include <stdlib.h>
 
 #include "clopts_common.h"
 #include "cmdarg_err.h"
@@ -56,14 +51,14 @@ get_natural_int(const char *string, const char *name)
               name, string, INT_MAX);
     exit(1);
   }
-  return number;
+  return (int)number;
 }
 
 
 int
 get_positive_int(const char *string, const char *name)
 {
-  long number;
+  int number;
 
   number = get_natural_int(string, name);