sbin/hammer: Make strtrl() api right [2/3]
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 10 Apr 2015 20:32:18 +0000 (05:32 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 12 Apr 2015 10:40:21 +0000 (19:40 +0900)
commitf2c96727e73f175f2a675b119ddbfec4bb18f5b4
treef49070e126106691186dd9ac8b655d8dc42cc0d3
parentea657cf34bf229a82bc08e9408712e7c08cd6eca
sbin/hammer: Make strtrl() api right [2/3]

- Fix changes made by commit 3c10747d.

- Not sure what the return value of strtrl() is trying to do, but
  checking ==NULL here doesn't mean anything unless 'path' is NULL.
  (The only case that had meaning was when 'path' was NULL, but
  it's pretty obvious callers were not passing NULL)

- Change strnlen() to strlen(). It's better to use strlen() when
  we know the input (argv[i]) is a C string. Also note that in
  this case non NULL terminated char[] of length 'size_t maxlen'
  is useless and does no good anyway.
sbin/hammer/cmd_pseudofs.c