diff options
author | Tim Potter <tpot@samba.org> | 2002-04-03 02:51:42 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-04-03 02:51:42 +0000 |
commit | 62946015c0b0f72dc33b7d19527c47db1fc5312b (patch) | |
tree | 8e7769aab7fc7a582d1915878985c4d7ea1805c1 /testsuite | |
parent | f624d6f3aef760f16570e030966eb4dc07fd81ec (diff) | |
download | samba-62946015c0b0f72dc33b7d19527c47db1fc5312b.tar.gz |
Fixed C++ comments.
(This used to be commit ca56042c032e95ff3e1e40ae9e89a0b847d83081)
Diffstat (limited to 'testsuite')
37 files changed, 89 insertions, 89 deletions
diff --git a/testsuite/libsmbclient/src/closedir/closedir_1.c b/testsuite/libsmbclient/src/closedir/closedir_1.c index 8d27b8ddd87..702b92c24ab 100644 --- a/testsuite/libsmbclient/src/closedir/closedir_1.c +++ b/testsuite/libsmbclient/src/closedir/closedir_1.c @@ -47,7 +47,7 @@ int main(int argc, char** argv) smbc_rmdir(url); smbc_mkdir(url,0666); dh = smbc_opendir(url); - //printf("directory handle: %i\n",dh); + /* printf("directory handle: %i\n",dh); */ err = smbc_closedir(dh); if ( err < 0 ) diff --git a/testsuite/libsmbclient/src/closedir/closedir_2.c b/testsuite/libsmbclient/src/closedir/closedir_2.c index c66cbb9c87d..88b6e2ce7e8 100644 --- a/testsuite/libsmbclient/src/closedir/closedir_2.c +++ b/testsuite/libsmbclient/src/closedir/closedir_2.c @@ -47,7 +47,7 @@ int main(int argc, char** argv) smbc_rmdir(url); smbc_mkdir(url,0666); dh = smbc_opendir(url); - //printf("directory handle: %i\n",dh); + /* printf("directory handle: %i\n",dh); */ smbc_closedir(dh); err = errno; diff --git a/testsuite/libsmbclient/src/closedir/closedir_3.c b/testsuite/libsmbclient/src/closedir/closedir_3.c index 23f5f679713..4fdc9c849c5 100644 --- a/testsuite/libsmbclient/src/closedir/closedir_3.c +++ b/testsuite/libsmbclient/src/closedir/closedir_3.c @@ -45,7 +45,7 @@ int main(int argc, char** argv) smbc_init(auth_fn, 0); dh = smbc_opendir(url); - //printf("directory handle: %i\n",dh); + /* printf("directory handle: %i\n",dh); */ err = smbc_closedir(dh); if ( err < 0 ) diff --git a/testsuite/libsmbclient/src/closedir/closedir_4.c b/testsuite/libsmbclient/src/closedir/closedir_4.c index bb5dc08331e..ee1d72bae39 100644 --- a/testsuite/libsmbclient/src/closedir/closedir_4.c +++ b/testsuite/libsmbclient/src/closedir/closedir_4.c @@ -45,7 +45,7 @@ int main(int argc, char** argv) smbc_init(auth_fn, 0); dh = smbc_opendir(url); - //printf("directory handle: %i\n",dh); + /* printf("directory handle: %i\n",dh); */ smbc_closedir(dh); err = errno; diff --git a/testsuite/libsmbclient/src/fstat/fstat_6.c b/testsuite/libsmbclient/src/fstat/fstat_6.c index a570c0adbc7..8a38e5be346 100644 --- a/testsuite/libsmbclient/src/fstat/fstat_6.c +++ b/testsuite/libsmbclient/src/fstat/fstat_6.c @@ -63,7 +63,7 @@ int main(int argc, char** argv) smbc_close(fd); free(message); - mode_mask = mode_mask | S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; //0666 or 33206 + mode_mask = mode_mask | S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; /* 0666 or 33206 */ if ( st.st_mode != mode_mask ) err = 1; diff --git a/testsuite/libsmbclient/src/getdents/getdents_1.c b/testsuite/libsmbclient/src/getdents/getdents_1.c index 96fa45cc10b..6e253f78c5c 100644 --- a/testsuite/libsmbclient/src/getdents/getdents_1.c +++ b/testsuite/libsmbclient/src/getdents/getdents_1.c @@ -31,8 +31,8 @@ int main(int argc, char** argv) { int err = -1; int dh = 0; - //int dirsize = 0; - //int dircount = 0; + /* int dirsize = 0; */ + /* int dircount = 0; */ struct smbc_dirent *dirptr; diff --git a/testsuite/libsmbclient/src/getdents/getdents_2.c b/testsuite/libsmbclient/src/getdents/getdents_2.c index 9d9d5b0b184..e7eb959a8f5 100644 --- a/testsuite/libsmbclient/src/getdents/getdents_2.c +++ b/testsuite/libsmbclient/src/getdents/getdents_2.c @@ -31,8 +31,8 @@ int main(int argc, char** argv) { int err = -1; int dh = 0; - //int dirsize = 0; - //int dircount = 0; + /* int dirsize = 0; */ + /* int dircount = 0; */ struct smbc_dirent *dirptr; diff --git a/testsuite/libsmbclient/src/getdents/getdents_3.c b/testsuite/libsmbclient/src/getdents/getdents_3.c index aa22caa4d40..58c8f709a96 100644 --- a/testsuite/libsmbclient/src/getdents/getdents_3.c +++ b/testsuite/libsmbclient/src/getdents/getdents_3.c @@ -102,7 +102,7 @@ int main(int argc, char** argv) while ( diramount > 0 ) { direntsize = dirptr->dirlen; - //printf("Name: %s\n",dirptr->name); + /* printf("Name: %s\n",dirptr->name); */ if ( j == 0 ) { if ( !(( strncmp(dirptr->name,".",1) == 0 )) ) @@ -125,7 +125,7 @@ int main(int argc, char** argv) memcpy(tmp_file_ptr,buff,strlen(buff)+4); strncat(tmp_file_ptr,".txt",4); - if ( !(( strcmp(dirptr->name,file_url) == 0 )) ) // make sure entries match + if ( !((strcmp(dirptr->name,file_url) == 0 )) ) /* make sure entries match */ { err = 1; break; @@ -143,7 +143,7 @@ int main(int argc, char** argv) if ( ! err ) { - if ( (j - 2) != entry_num ) // Make sure that all entries created are counted and returned - minus . and .. + if ( (j - 2) != entry_num ) /* Make sure that all entries created are counted and returned - minus . and .. */ err = 1; } diff --git a/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_1.c b/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_1.c index f12fcb48c6b..714f08fd723 100644 --- a/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_1.c +++ b/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_1.c @@ -53,8 +53,8 @@ void print_list_fn(struct print_job_info *pji) strcpy(g_print_user,pji->user); strcpy(g_print_name,pji->name); - //fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", - // pji->id, pji->priority, pji->size, pji->user, pji->name); + /* fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", + pji->id, pji->priority, pji->size, pji->user, pji->name); */ } @@ -85,7 +85,7 @@ int main(int argc, char** argv) smbc_init(auth_fn, 0); - while ( ! print_queue_empty ) // Wait until the queue is empty + while ( ! print_queue_empty ) /* Wait until the queue is empty */ { sleep(1); print_queue_empty = 1; diff --git a/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_2.c b/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_2.c index faa60cd31b1..6d6874716cc 100644 --- a/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_2.c +++ b/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_2.c @@ -50,8 +50,8 @@ void print_list_fn(struct print_job_info *pji) strcpy(g_print_user,pji->user); strcpy(g_print_name,pji->name); - //fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", - // pji->id, pji->priority, pji->size, pji->user, pji->name); + /* fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", + pji->id, pji->priority, pji->size, pji->user, pji->name); */ } @@ -82,7 +82,7 @@ int main(int argc, char** argv) smbc_init(auth_fn, 0); - while ( ! print_queue_empty ) // Wait until the queue is empty + while ( ! print_queue_empty ) /* Wait until the queue is empty */ { sleep(1); print_queue_empty = 1; diff --git a/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_3.c b/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_3.c index c08240d1d51..1cb52d08941 100644 --- a/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_3.c +++ b/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_3.c @@ -42,8 +42,8 @@ void print_list_fn(struct print_job_info *pji) strcpy(g_print_user,pji->user); strcpy(g_print_name,pji->name); - //fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", - // pji->id, pji->priority, pji->size, pji->user, pji->name); + /* fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", + pji->id, pji->priority, pji->size, pji->user, pji->name); */ } @@ -76,8 +76,8 @@ int main(int argc, char** argv) message = malloc(msg_len); message[msg_len - 1] = 0; strncpy(message,argv[5],msg_len); - //printf("Message: %s\n",message); - //printf("Message len: %i\n",msg_len); + /* printf("Message: %s\n",message); */ + /* printf("Message len: %i\n",msg_len); */ smbc_init(auth_fn, 0); smbc_unlink(url); diff --git a/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_4.c b/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_4.c index 89234b358fd..ad207724b46 100644 --- a/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_4.c +++ b/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_4.c @@ -42,8 +42,8 @@ void print_list_fn(struct print_job_info *pji) strcpy(g_print_user,pji->user); strcpy(g_print_name,pji->name); - //fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", - // pji->id, pji->priority, pji->size, pji->user, pji->name); + /* fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", + pji->id, pji->priority, pji->size, pji->user, pji->name); */ } @@ -76,8 +76,8 @@ int main(int argc, char** argv) message = malloc(msg_len); message[msg_len - 1] = 0; strncpy(message,argv[5],msg_len); - //printf("Message: %s\n",message); - //printf("Message len: %i\n",msg_len); + /* printf("Message: %s\n",message); */ + /* printf("Message len: %i\n",msg_len); */ smbc_init(auth_fn, 0); smbc_unlink(url); diff --git a/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_5.c b/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_5.c index fa0007f7a55..874bc896d06 100644 --- a/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_5.c +++ b/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_5.c @@ -50,8 +50,8 @@ void print_list_fn(struct print_job_info *pji) strcpy(g_print_user,pji->user); strcpy(g_print_name,pji->name); - //fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", - // pji->id, pji->priority, pji->size, pji->user, pji->name); + /* fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", + pji->id, pji->priority, pji->size, pji->user, pji->name); */ } @@ -82,7 +82,7 @@ int main(int argc, char** argv) smbc_init(auth_fn, 0); - while ( ! print_queue_empty ) // Wait until the queue is empty + while ( ! print_queue_empty ) /* Wait until the queue is empty */ { sleep(1); print_queue_empty = 1; diff --git a/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_6.c b/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_6.c index d752d0d0ab5..7b691ae75ac 100644 --- a/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_6.c +++ b/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_6.c @@ -43,8 +43,8 @@ void print_list_fn(struct print_job_info *pji) strcpy(g_print_user,pji->user); strcpy(g_print_name,pji->name); - //fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", - // pji->id, pji->priority, pji->size, pji->user, pji->name); + /* fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", + pji->id, pji->priority, pji->size, pji->user, pji->name); */ print_fn_call_flag = 1; @@ -83,8 +83,8 @@ int main(int argc, char** argv) message = malloc(msg_len); message[msg_len - 1] = 0; strncpy(message,argv[5],msg_len); - //printf("Message: %s\n",message); - //printf("Message len: %i\n",msg_len); + /* printf("Message: %s\n",message); */ + /* printf("Message len: %i\n",msg_len); */ smbc_init(auth_fn, 0); smbc_unlink(url); diff --git a/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_7.c b/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_7.c index 2675e12d9d3..d25d20721b1 100644 --- a/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_7.c +++ b/testsuite/libsmbclient/src/list_print_jobs/list_print_jobs_7.c @@ -42,8 +42,8 @@ void print_list_fn(struct print_job_info *pji) strcpy(g_print_user,pji->user); strcpy(g_print_name,pji->name); - //fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", - // pji->id, pji->priority, pji->size, pji->user, pji->name); + /* fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", + pji->id, pji->priority, pji->size, pji->user, pji->name); */ } @@ -76,8 +76,8 @@ int main(int argc, char** argv) message = malloc(msg_len); message[msg_len - 1] = 0; strncpy(message,argv[5],msg_len); - //printf("Message: %s\n",message); - //printf("Message len: %i\n",msg_len); + /* printf("Message: %s\n",message); */ + /* printf("Message len: %i\n",msg_len); */ smbc_init(auth_fn, 0); smbc_unlink(url); @@ -92,7 +92,7 @@ int main(int argc, char** argv) if (( (g_print_size > 0) && (g_print_size > 0) && (strcasecmp(g_username,g_print_user)==0) )) - // && (strlen(g_print_name) > 0) )) + /* && (strlen(g_print_name) > 0) )) */ err = 0; else diff --git a/testsuite/libsmbclient/src/lseekdir/lseekdir_1.c b/testsuite/libsmbclient/src/lseekdir/lseekdir_1.c index 1c1ffa330e8..010ca382a59 100644 --- a/testsuite/libsmbclient/src/lseekdir/lseekdir_1.c +++ b/testsuite/libsmbclient/src/lseekdir/lseekdir_1.c @@ -83,9 +83,9 @@ int main(int argc, char** argv) } dh = smbc_opendir(url); - //printf("directory handle: %i\n",dh); + /* printf("directory handle: %i\n",dh); */ err = smbc_lseekdir(dh,0); - //printf("err: %i\n",err); + /* printf("err: %i\n",err); */ if ( err < 0 ) diff --git a/testsuite/libsmbclient/src/lseekdir/lseekdir_3.c b/testsuite/libsmbclient/src/lseekdir/lseekdir_3.c index eae8c63b770..ede9cef0815 100644 --- a/testsuite/libsmbclient/src/lseekdir/lseekdir_3.c +++ b/testsuite/libsmbclient/src/lseekdir/lseekdir_3.c @@ -48,9 +48,9 @@ int main(int argc, char** argv) smbc_init(auth_fn, 0); dh = smbc_opendir(url); - //printf("directory handle: %i\n",dh); + /* printf("directory handle: %i\n",dh); */ err = smbc_lseekdir(dh,0); - //printf("err: %i\n",err); + /* printf("err: %i\n",err); */ if ( err < 0 ) diff --git a/testsuite/libsmbclient/src/lseekdir/lseekdir_4.c b/testsuite/libsmbclient/src/lseekdir/lseekdir_4.c index ac21616340f..1bc9a7e45d0 100644 --- a/testsuite/libsmbclient/src/lseekdir/lseekdir_4.c +++ b/testsuite/libsmbclient/src/lseekdir/lseekdir_4.c @@ -48,10 +48,10 @@ int main(int argc, char** argv) smbc_init(auth_fn, 0); dh = smbc_opendir(url); - //printf("directory handle: %i\n",dh); + /* printf("directory handle: %i\n",dh); */ smbc_lseekdir(dh,0); err = errno; - //printf("err: %i\n",err); + /* printf("err: %i\n",err); */ } diff --git a/testsuite/libsmbclient/src/lseekdir/lseekdir_6.c b/testsuite/libsmbclient/src/lseekdir/lseekdir_6.c index 94c86e26ebd..543cbafe140 100644 --- a/testsuite/libsmbclient/src/lseekdir/lseekdir_6.c +++ b/testsuite/libsmbclient/src/lseekdir/lseekdir_6.c @@ -106,13 +106,13 @@ int main(int argc, char** argv) } - smbc_lseekdir(dh,0); // move to front - smbc_lseekdir(dh,dirsize); // move to end + smbc_lseekdir(dh,0); /* move to front */ + smbc_lseekdir(dh,dirsize); /* move to end */ offset = smbc_telldir(dh); if ( offset != dirsize ) { - //printf("offset: %i dirsize: %i\n",offset,dirsize); + /* printf("offset: %i dirsize: %i\n",offset,dirsize); */ err = 1; } diff --git a/testsuite/libsmbclient/src/opendir/opendir_1.c b/testsuite/libsmbclient/src/opendir/opendir_1.c index e839b99cd12..1bd01b5feeb 100644 --- a/testsuite/libsmbclient/src/opendir/opendir_1.c +++ b/testsuite/libsmbclient/src/opendir/opendir_1.c @@ -45,7 +45,7 @@ int main(int argc, char** argv) smbc_init(auth_fn, 0); dh = smbc_opendir(url); - //printf("directory handle: %i\n",dh); + /* printf("directory handle: %i\n",dh); */ if ( dh < 0 ) err = 1; diff --git a/testsuite/libsmbclient/src/print_file/print_file_1.c b/testsuite/libsmbclient/src/print_file/print_file_1.c index fcb4466112b..19932aa3192 100644 --- a/testsuite/libsmbclient/src/print_file/print_file_1.c +++ b/testsuite/libsmbclient/src/print_file/print_file_1.c @@ -50,8 +50,8 @@ int main(int argc, char** argv) message = malloc(msg_len); message[msg_len - 1] = 0; strncpy(message,argv[5],msg_len); - //printf("Message: %s\n",message); - //printf("Message len: %i\n",msg_len); + /* printf("Message: %s\n",message); */ + /* printf("Message len: %i\n",msg_len); */ smbc_init(auth_fn, 0); smbc_unlink(url); diff --git a/testsuite/libsmbclient/src/print_file/print_file_2.c b/testsuite/libsmbclient/src/print_file/print_file_2.c index a217a0f3b40..a569cd8fe97 100644 --- a/testsuite/libsmbclient/src/print_file/print_file_2.c +++ b/testsuite/libsmbclient/src/print_file/print_file_2.c @@ -50,8 +50,8 @@ int main(int argc, char** argv) message = malloc(msg_len); message[msg_len - 1] = 0; strncpy(message,argv[5],msg_len); - //printf("Message: %s\n",message); - //printf("Message len: %i\n",msg_len); + /* printf("Message: %s\n",message); */ + /* printf("Message len: %i\n",msg_len); */ smbc_init(auth_fn, 0); smbc_unlink(url); diff --git a/testsuite/libsmbclient/src/read/read_7.c b/testsuite/libsmbclient/src/read/read_7.c index 081b50a3c82..fa8a783d7fa 100644 --- a/testsuite/libsmbclient/src/read/read_7.c +++ b/testsuite/libsmbclient/src/read/read_7.c @@ -42,7 +42,7 @@ int main(int argc, char** argv) strncpy(g_username,argv[2],strlen(argv[2])); strncpy(g_password,argv[3],strlen(argv[3])); - fd = 10345; // Random value for File Descriptor + fd = 10345; /* Random value for File Descriptor */ smbc_init(auth_fn, 0); err = smbc_read(fd, message, sizeof(message)); diff --git a/testsuite/libsmbclient/src/read/read_8.c b/testsuite/libsmbclient/src/read/read_8.c index 5523fbaac3a..e3f7055d3f4 100644 --- a/testsuite/libsmbclient/src/read/read_8.c +++ b/testsuite/libsmbclient/src/read/read_8.c @@ -42,7 +42,7 @@ int main(int argc, char** argv) strncpy(g_username,argv[2],strlen(argv[2])); strncpy(g_password,argv[3],strlen(argv[3])); - fd = 10345; // Random value for File Descriptor + fd = 10345; /* Random value for File Descriptor */ smbc_init(auth_fn, 0); err = smbc_read(fd, message, sizeof(message)); diff --git a/testsuite/libsmbclient/src/readdir/readdir_5.c b/testsuite/libsmbclient/src/readdir/readdir_5.c index d1a31ef9f08..de94c4698e3 100644 --- a/testsuite/libsmbclient/src/readdir/readdir_5.c +++ b/testsuite/libsmbclient/src/readdir/readdir_5.c @@ -104,7 +104,7 @@ int main(int argc, char** argv) break; } - //printf("Name: %s\n",dirptr->name); + /* printf("Name: %s\n",dirptr->name); */ if ( j == 0 ) { if ( !(( strncmp(dirptr->name,".",1) == 0 )) ) @@ -127,7 +127,7 @@ int main(int argc, char** argv) memcpy(tmp_file_ptr,buff,strlen(buff)+4); strncat(tmp_file_ptr,".txt",4); - if ( !(( strcmp(dirptr->name,file_url) == 0 )) ) // make sure entries match + if ( !(( strcmp(dirptr->name,file_url) == 0 )) ) /* make sure entries match */ { err = 1; break; @@ -143,7 +143,7 @@ int main(int argc, char** argv) if ( ! err ) { - if ( (j - 2) != entry_num ) // Make sure that all entries created are counted and returned - minus . and .. + if ( (j - 2) != entry_num ) /* Make sure that all entries created are counted and returned - minus . and .. */ err = 1; } diff --git a/testsuite/libsmbclient/src/stat/stat_6.c b/testsuite/libsmbclient/src/stat/stat_6.c index a27e9ba1394..071bdd0f2f0 100644 --- a/testsuite/libsmbclient/src/stat/stat_6.c +++ b/testsuite/libsmbclient/src/stat/stat_6.c @@ -63,7 +63,7 @@ int main(int argc, char** argv) free(message); - mode_mask = mode_mask | S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; //0666 or 33206 + mode_mask = mode_mask | S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; /* 0666 or 33206 */ if ( st.st_mode != mode_mask ) err = 1; diff --git a/testsuite/libsmbclient/src/telldir/telldir_1.c b/testsuite/libsmbclient/src/telldir/telldir_1.c index 401bae9e166..725033f453c 100644 --- a/testsuite/libsmbclient/src/telldir/telldir_1.c +++ b/testsuite/libsmbclient/src/telldir/telldir_1.c @@ -83,9 +83,9 @@ int main(int argc, char** argv) } dh = smbc_opendir(url); - //printf("directory handle: %i\n",dh); + /* printf("directory handle: %i\n",dh); */ err = smbc_telldir(dh); - //printf("err: %i\n",err); + /* printf("err: %i\n",err); */ if ( err < 0 ) diff --git a/testsuite/libsmbclient/src/telldir/telldir_3.c b/testsuite/libsmbclient/src/telldir/telldir_3.c index 18f1aac6958..06ba59538ae 100644 --- a/testsuite/libsmbclient/src/telldir/telldir_3.c +++ b/testsuite/libsmbclient/src/telldir/telldir_3.c @@ -48,9 +48,9 @@ int main(int argc, char** argv) smbc_init(auth_fn, 0); dh = smbc_opendir(url); - //printf("directory handle: %i\n",dh); + /* printf("directory handle: %i\n",dh); */ err = smbc_telldir(dh); - //printf("err: %i\n",err); + /* printf("err: %i\n",err); */ if ( err < 0 ) diff --git a/testsuite/libsmbclient/src/telldir/telldir_4.c b/testsuite/libsmbclient/src/telldir/telldir_4.c index da9ca00b4df..14184237d76 100644 --- a/testsuite/libsmbclient/src/telldir/telldir_4.c +++ b/testsuite/libsmbclient/src/telldir/telldir_4.c @@ -48,10 +48,10 @@ int main(int argc, char** argv) smbc_init(auth_fn, 0); dh = smbc_opendir(url); - //printf("directory handle: %i\n",dh); + /* printf("directory handle: %i\n",dh); */ smbc_telldir(dh); err = errno; - //printf("err: %i\n",err); + /* printf("err: %i\n",err); */ } diff --git a/testsuite/libsmbclient/src/telldir/telldir_5.c b/testsuite/libsmbclient/src/telldir/telldir_5.c index 3d7e92fb066..9172b2d1aba 100644 --- a/testsuite/libsmbclient/src/telldir/telldir_5.c +++ b/testsuite/libsmbclient/src/telldir/telldir_5.c @@ -110,7 +110,7 @@ int main(int argc, char** argv) if ( offset != dirsize ) { - //printf("offset: %i dirsize: %i\n",offset,dirsize); + /* printf("offset: %i dirsize: %i\n",offset,dirsize); */ err = 1; } diff --git a/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_1.c b/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_1.c index 1b937192a0b..b19bf228de1 100644 --- a/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_1.c +++ b/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_1.c @@ -42,8 +42,8 @@ void print_list_fn(struct print_job_info *pji) strcpy(g_print_user,pji->user); strcpy(g_print_name,pji->name); - //fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", - // pji->id, pji->priority, pji->size, pji->user, pji->name); + /* fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", + pji->id, pji->priority, pji->size, pji->user, pji->name); */ } @@ -76,8 +76,8 @@ int main(int argc, char** argv) message = malloc(msg_len); message[msg_len - 1] = 0; strncpy(message,argv[5],msg_len); - //printf("Message: %s\n",message); - //printf("Message len: %i\n",msg_len); + /* printf("Message: %s\n",message); */ + /* printf("Message len: %i\n",msg_len); */ smbc_init(auth_fn, 0); smbc_unlink(url); diff --git a/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_2.c b/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_2.c index 49c9ef66876..52f127c3629 100644 --- a/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_2.c +++ b/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_2.c @@ -42,8 +42,8 @@ void print_list_fn(struct print_job_info *pji) strcpy(g_print_user,pji->user); strcpy(g_print_name,pji->name); - //fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", - // pji->id, pji->priority, pji->size, pji->user, pji->name); + /* fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", + pji->id, pji->priority, pji->size, pji->user, pji->name); */ } @@ -76,8 +76,8 @@ int main(int argc, char** argv) message = malloc(msg_len); message[msg_len - 1] = 0; strncpy(message,argv[5],msg_len); - //printf("Message: %s\n",message); - //printf("Message len: %i\n",msg_len); + /* printf("Message: %s\n",message); */ + /* printf("Message len: %i\n",msg_len); */ smbc_init(auth_fn, 0); smbc_unlink(url); diff --git a/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_3.c b/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_3.c index a4cbf42fec5..5686b3f53ed 100644 --- a/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_3.c +++ b/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_3.c @@ -42,8 +42,8 @@ void print_list_fn(struct print_job_info *pji) strcpy(g_print_user,pji->user); strcpy(g_print_name,pji->name); - //fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", - // pji->id, pji->priority, pji->size, pji->user, pji->name); + /* fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", + pji->id, pji->priority, pji->size, pji->user, pji->name); */ } @@ -76,8 +76,8 @@ int main(int argc, char** argv) message = malloc(msg_len); message[msg_len - 1] = 0; strncpy(message,argv[5],msg_len); - //printf("Message: %s\n",message); - //printf("Message len: %i\n",msg_len); + /* printf("Message: %s\n",message); */ + /* printf("Message len: %i\n",msg_len); */ smbc_init(auth_fn, 0); smbc_unlink(url); diff --git a/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_4.c b/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_4.c index 156d3413943..28966f8af4d 100644 --- a/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_4.c +++ b/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_4.c @@ -42,8 +42,8 @@ void print_list_fn(struct print_job_info *pji) strcpy(g_print_user,pji->user); strcpy(g_print_name,pji->name); - //fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", - // pji->id, pji->priority, pji->size, pji->user, pji->name); + /* fprintf(stdout, "Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", + pji->id, pji->priority, pji->size, pji->user, pji->name); */ } @@ -76,8 +76,8 @@ int main(int argc, char** argv) message = malloc(msg_len); message[msg_len - 1] = 0; strncpy(message,argv[5],msg_len); - //printf("Message: %s\n",message); - //printf("Message len: %i\n",msg_len); + /* printf("Message: %s\n",message); */ + /* printf("Message len: %i\n",msg_len); */ smbc_init(auth_fn, 0); smbc_unlink(url); diff --git a/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_5.c b/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_5.c index 4ba5e208b21..4fb3e30017b 100644 --- a/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_5.c +++ b/testsuite/libsmbclient/src/unlink_print_job/unlink_print_job_5.c @@ -42,8 +42,8 @@ void print_list_fn_2(struct print_job_info *pji) print_ids[print_id_count] = pji->id; print_id_count++; - //fprintf(stdout, "Call to Second Print Function - Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", - // pji->id, pji->priority, pji->size, pji->user, pji->name); + /* fprintf(stdout, "Call to Second Print Function - Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", + pji->id, pji->priority, pji->size, pji->user, pji->name); */ } @@ -56,8 +56,8 @@ void print_list_fn(struct print_job_info *pji) strcpy(g_print_user,pji->user); strcpy(g_print_name,pji->name); - //fprintf(stdout, "Call to First Print Function - Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", - // pji->id, pji->priority, pji->size, pji->user, pji->name); + /* fprintf(stdout, "Call to First Print Function - Print job: ID: %u, Prio: %u, Size: %u, User: %s, Name: %s\n", + pji->id, pji->priority, pji->size, pji->user, pji->name); */ } @@ -93,8 +93,8 @@ int main(int argc, char** argv) message = malloc(msg_len); message[msg_len - 1] = 0; strncpy(message,argv[5],msg_len); - //printf("Message: %s\n",message); - //printf("Message len: %i\n",msg_len); + /* printf("Message: %s\n",message); */ + /* printf("Message len: %i\n",msg_len); */ smbc_init(auth_fn, 0); smbc_unlink(url); diff --git a/testsuite/libsmbclient/src/write/write_7.c b/testsuite/libsmbclient/src/write/write_7.c index b0ce9b6fa26..bc509f1efd3 100644 --- a/testsuite/libsmbclient/src/write/write_7.c +++ b/testsuite/libsmbclient/src/write/write_7.c @@ -42,7 +42,7 @@ int main(int argc, char** argv) strncpy(g_username,argv[2],strlen(argv[2])); strncpy(g_password,argv[3],strlen(argv[3])); - fd = 10345; // Random value for File Descriptor + fd = 10345; /* Random value for File Descriptor */ smbc_init(auth_fn, 0); err = smbc_write(fd, message, sizeof(message)); diff --git a/testsuite/libsmbclient/src/write/write_8.c b/testsuite/libsmbclient/src/write/write_8.c index 4176bec6012..acc20f19586 100644 --- a/testsuite/libsmbclient/src/write/write_8.c +++ b/testsuite/libsmbclient/src/write/write_8.c @@ -42,7 +42,7 @@ int main(int argc, char** argv) strncpy(g_username,argv[2],strlen(argv[2])); strncpy(g_password,argv[3],strlen(argv[3])); - fd = 10345; // Random value for File Descriptor + fd = 10345; /* Random value for File Descriptor */ smbc_init(auth_fn, 0); err = smbc_write(fd, message, sizeof(message)); |