• J
    env: Refactor apply into change_ok · 7afcf3a5
    Joe Hershberger 提交于
    Move the read of the old value to inside the check function.  In some
    cases it can be avoided all together and at the least the code is only
    called from one place.
    
    Also name the function and the callback to more clearly describe what
    it does.
    
    Pass the ENTRY instead of just the name for direct access to the whole
    data structure.
    
    Pass an enum to the callback that specifies the operation being approved.
    Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
    7afcf3a5
cmd_nvedit.c 26.5 KB