Wireshark-commits: [Wireshark-commits] master cea1737: Let strtoi with NULL endptr require no inval

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 12 Sep 2016 16:01:13 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=cea1737bd218aa84bf41637deee25bd199fb128d
Submitter: Dario Lombardo (lomato@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

cea1737 by Peter Wu (peter@xxxxxxxxxxxxx):

    Let strtoi with NULL endptr require no invalid characters
    
    If the caller is not interested in checking its end, then it probably
    wants a valid number only if the string contains a valid number. Add a
    shortcut for this.
    
    Change-Id: I39701bd445e29fb2606720b18ca3764c74a7255b
    Reviewed-on: https://code.wireshark.org/review/17658
    Petri-Dish: Dario Lombardo <lomato@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    Reviewed-by: Dario Lombardo <lomato@xxxxxxxxx>
    

Actions performed:

    from  e3247b3   fix some compilation issues without extcap.
    adds  cea1737   Let strtoi with NULL endptr require no invalid characters


Summary of changes:
 wsutil/clopts_common.c |   10 ++++------
 wsutil/strtoi.c        |    4 ++--
 wsutil/strtoi.h        |    8 +++++---
 3 files changed, 11 insertions(+), 11 deletions(-)