diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-13 13:13:35 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-13 13:13:35 +0200 |
commit | f492e45dd2fd1f0ef59f37cd0c3f125203831e98 (patch) | |
tree | 0bb97e503a14a64b2c4a581f7ed82367c9ebe7e2 | |
parent | d62b6d845c75e9c6074d821b425035fbee9c1559 (diff) |
Convert sal/osl/unx/tempfile.c to C++
...for easier future maintenance
Change-Id: I501076882daa7f36f414f9fa62f790eb85ac3259
-rw-r--r-- | sal/Library_sal.mk | 2 | ||||
-rw-r--r-- | sal/osl/unx/tempfile.cxx (renamed from sal/osl/unx/tempfile.c) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/Library_sal.mk b/sal/Library_sal.mk index 1d88f78cf396..122b95f020ad 100644 --- a/sal/Library_sal.mk +++ b/sal/Library_sal.mk @@ -165,6 +165,7 @@ $(eval $(call gb_Library_add_exception_objects,sal,\ sal/osl/unx/process_impl \ sal/osl/unx/profile \ sal/osl/unx/security \ + sal/osl/unx/tempfile \ $(if $(filter DESKTOP,$(BUILD_TYPE)), sal/osl/unx/salinit) \ )) $(eval $(call gb_Library_add_cobjects,sal,\ @@ -175,7 +176,6 @@ $(eval $(call gb_Library_add_cobjects,sal,\ sal/osl/unx/readwrite_helper \ sal/osl/unx/socket \ sal/osl/unx/system \ - sal/osl/unx/tempfile \ sal/osl/unx/thread \ sal/osl/unx/time \ )) diff --git a/sal/osl/unx/tempfile.c b/sal/osl/unx/tempfile.cxx index 9ae785b7ae95..3d643b8a01ea 100644 --- a/sal/osl/unx/tempfile.c +++ b/sal/osl/unx/tempfile.cxx @@ -217,7 +217,7 @@ static oslFileError osl_create_temp_file_impl_( offset_file_name++; } - while(1) /* try until success */ + while(true) /* try until success */ { osl_gen_random_name_impl_(&rand_name); |