L4Re/departure

Change of tests/dstest_file_client.cc

151:d596a1948294
tests/dstest_file_client.cc
     1.1 --- a/tests/dstest_file_client.cc	Sun Aug 01 00:07:00 2021 +0200
     1.2 +++ b/tests/dstest_file_client.cc	Sun Aug 01 00:23:08 2021 +0200
     1.3 @@ -142,12 +142,13 @@
     1.4    }
     1.5  
     1.6    char *filename = argv[1];
     1.7 -  sys_uid_t uid = argc > 2 ? atoi(argv[2]) : 0;
     1.8 +  bool have_uid = (argc > 2) && strlen(argv[2]);
     1.9 +  sys_uid_t uid = have_uid ? atoi(argv[2]) : 0; 
    1.10    file_t *file1, *file2;
    1.11  
    1.12    /* With a user, open a user-specific file opener. */
    1.13  
    1.14 -  if (uid)
    1.15 +  if (have_uid)
    1.16    {
    1.17      l4_cap_idx_t opener = client_open_for_user((user_t) {uid, uid, 0022});
    1.18